Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
ba6f5403
Commit
ba6f5403
authored
Dec 20, 2003
by
pem@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/pem/work/mysql-4.1
into mysql.com:/home/pem/work/mysql-5.0-merge
parents
e2cbc87b
947057e7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
32 deletions
+43
-32
innobase/configure.in
innobase/configure.in
+1
-0
innobase/include/univ.i
innobase/include/univ.i
+19
-19
innobase/srv/srv0srv.c
innobase/srv/srv0srv.c
+15
-12
innobase/srv/srv0start.c
innobase/srv/srv0start.c
+8
-1
No files found.
innobase/configure.in
View file @
ba6f5403
...
...
@@ -37,6 +37,7 @@ AC_PROG_INSTALL
AC_CHECK_HEADERS(aio.h sched.h)
AC_CHECK_SIZEOF(int, 4)
AC_CHECK_SIZEOF(long, 4)
AC_CHECK_SIZEOF(void*, 4)
AC_CHECK_FUNCS(sched_yield)
AC_CHECK_FUNCS(fdatasync)
#AC_CHECK_FUNCS(localtime_r) # Already checked by MySQL
...
...
innobase/include/univ.i
View file @
ba6f5403
...
...
@@ -67,16 +67,6 @@ Microsoft Visual C++ */
#
endif
/* #if (defined(WIN32) || ... */
#
ifdef
NOT_USED
/* On the 64-bit Windows we replace printf with ut_printf, etc. so that
we can use the %lu format string to print a 64-bit ulint */
#
if
defined
(
__WIN__
)
&
&
(defined(WIN64)
||
defined(_WIN64))
#
define
printf
ut_printf
#
define
sprintf
ut_sprintf
#
define
fprintf
ut_fprintf
#
endif
#
endif
/* DEBUG VERSION CONTROL
===================== */
...
...
@@ -187,16 +177,20 @@ management to ensure correct alignment for doubles etc. */
/* Note that inside MySQL 'byte' is defined as char on Linux! */
#
define
byte
unsigned
char
/* Another basic type we use is unsigned long integer which is intended to be
equal to the word size of the machine. */
/* Another basic type we use is unsigned long integer which should be equal to
the word size of the machine, that is on a 32-bit platform 32 bits, and on a
64-bit platform 64 bits. We also give the printf format for the type as a
macro PRULINT. */
#
ifdef
_WIN64
typedef
unsigned
__int64
ulint
;
#
define
ULINTPF
"%I64u"
typedef
__int64
lint
;
#
else
typedef
unsigned
long
int
ulint
;
#
endif
#
define
ULINTPF
"%lu"
typedef
long
int
lint
;
#
endif
#
ifdef
__WIN__
typedef
__int64
ib_longlong
;
...
...
@@ -204,6 +198,12 @@ typedef __int64 ib_longlong;
typedef
longlong
ib_longlong
;
#
endif
#
ifndef
__WIN__
#
if
SIZEOF_LONG
!=
SIZEOF_VOIDP
#
error
"Error: InnoDB's ulint must be of the same size as void*"
#
endif
#
endif
/* The following type should be at least a 64-bit floating point number */
typedef
double
utfloat
;
...
...
innobase/srv/srv0srv.c
View file @
ba6f5403
...
...
@@ -2447,14 +2447,16 @@ srv_sprintf_innodb_monitor(
"BUFFER POOL AND MEMORY
\n
"
"----------------------
\n
"
);
buf
+=
sprintf
(
buf
,
"Total memory allocated %lu; in additional pool allocated %lu
\n
"
,
(
ulong
)
ut_total_allocated_memory
,
(
ulong
)
mem_pool_get_reserved
(
mem_comm_pool
));
"Total memory allocated "
ULINTPF
"; in additional pool allocated"
ULINTPF
"
\n
"
,
ut_total_allocated_memory
,
mem_pool_get_reserved
(
mem_comm_pool
));
if
(
mem_out_of_mem_err_msg_count
>
0
)
{
buf
+=
sprintf
(
buf
,
"Mem allocation has spilled out of additional mem pool %lu times
\n
"
,
(
ulong
)
mem_out_of_mem_err_msg_count
);
"Mem allocation has spilled out of additional mem pool"
ULINTPF
"times
\n
"
,
mem_out_of_mem_err_msg_count
);
}
if
(
srv_use_awe
)
{
...
...
@@ -2472,7 +2474,7 @@ srv_sprintf_innodb_monitor(
"--------------
\n
"
);
buf
+=
sprintf
(
buf
,
"%ld queries inside InnoDB, %lu queries in queue
\n
"
,
(
u
long
)
srv_conc_n_threads
,
(
long
)
srv_conc_n_threads
,
(
ulong
)
srv_conc_n_waiting_threads
);
n_reserved
=
fil_space_get_n_reserved_extents
(
0
);
...
...
@@ -2495,11 +2497,12 @@ srv_sprintf_innodb_monitor(
srv_main_thread_op_info
);
#endif
buf
+=
sprintf
(
buf
,
"Number of rows inserted %lu, updated %lu, deleted %lu, read %lu
\n
"
,
(
ulong
)
srv_n_rows_inserted
,
(
ulong
)
srv_n_rows_updated
,
(
ulong
)
srv_n_rows_deleted
,
(
ulong
)
srv_n_rows_read
);
"Number of rows inserted "
ULINTPF
", updated "
ULINTPF
", deleted "
ULINTPF
", read "
ULINTPF
"
\n
"
,
srv_n_rows_inserted
,
srv_n_rows_updated
,
srv_n_rows_deleted
,
srv_n_rows_read
);
buf
+=
sprintf
(
buf
,
"%.2f inserts/s, %.2f updates/s, %.2f deletes/s, %.2f reads/s
\n
"
,
(
srv_n_rows_inserted
-
srv_n_rows_inserted_old
)
...
...
innobase/srv/srv0start.c
View file @
ba6f5403
...
...
@@ -57,7 +57,6 @@ Created 2/16/1996 Heikki Tuuri
#include "srv0start.h"
#include "que0que.h"
/* Log sequence number immediately after startup */
dulint
srv_start_lsn
;
/* Log sequence number at shutdown */
...
...
@@ -1010,6 +1009,14 @@ innobase_start_or_create_for_mysql(void)
ibool
srv_file_per_table_original_value
=
srv_file_per_table
;
mtr_t
mtr
;
if
(
sizeof
(
ulint
)
!=
sizeof
(
void
*
))
{
fprintf
(
stderr
,
"InnoDB: Error: size of InnoDB's ulint is %lu, but size of void* is %lu.
\n
"
"InnoDB: The sizes should be the same so that on a 64-bit platform you can
\n
"
"InnoDB: allocate more than 4 GB of memory."
,
(
ulong
)
sizeof
(
ulint
),
(
ulong
)
sizeof
(
void
*
));
}
srv_file_per_table
=
FALSE
;
/* system tables are created in tablespace
0 */
#ifdef UNIV_DEBUG
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment