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
f93a60f1
Commit
f93a60f1
authored
Sep 06, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge heikki@build.mysql.com:/home/bk/mysql-4.1
into hundin.mysql.fi:/home/heikki/mysql-4.1
parents
7d0df267
bdf4d694
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
28 deletions
+14
-28
innobase/srv/srv0start.c
innobase/srv/srv0start.c
+13
-27
innobase/trx/trx0undo.c
innobase/trx/trx0undo.c
+1
-1
No files found.
innobase/srv/srv0start.c
View file @
f93a60f1
...
...
@@ -1056,33 +1056,14 @@ innobase_start_or_create_for_mysql(void)
return
(
DB_ERROR
);
}
/* Set the maximum number of threads which can wait for a semaphore
inside InnoDB */
#if defined(__WIN__) || defined(__NETWARE__)
/* Create less event semaphores because Win 98/ME had difficulty creating
40000 event semaphores.
Comment from Novell, Inc.: also, these just take a lot of memory on
NetWare. */
srv_max_n_threads
=
1000
;
#else
if
(
srv_pool_size
>=
8
*
1024
)
{
/* Here we still have srv_pool_size counted
in kilobytes, srv_boot converts the value to
pages; if buffer pool is less than 8 MB,
assume fewer threads. */
srv_max_n_threads
=
10000
;
}
else
{
srv_max_n_threads
=
1000
;
/* saves several MB of memory,
especially in 64-bit
computers */
}
#endif
/* Note that the call srv_boot() also changes the values of
srv_pool_size etc. to the units used by InnoDB internally */
/* Set the maximum number of threads which can wait for a semaphore
inside InnoDB */
inside InnoDB: this is the 'sync wait array' size, as well as the
maximum number of threads that can wait in the 'srv_conc array' for
their time to enter InnoDB. */
#if defined(__WIN__) || defined(__NETWARE__)
/* Create less event semaphores because Win 98/ME had difficulty creating
...
...
@@ -1091,11 +1072,16 @@ Comment from Novell, Inc.: also, these just take a lot of memory on
NetWare. */
srv_max_n_threads
=
1000
;
#else
if
(
srv_pool_size
>=
8
*
1024
*
1024
)
{
if
(
srv_pool_size
>=
1000
*
1024
)
{
/* Here we still have srv_pool_size counted
in bytes, srv_boot converts the value to
pages; if buffer pool is less than 8 MB,
in kilobytes (in 4.0 this was in bytes)
srv_boot() converts the value to
pages; if buffer pool is less than 1000 MB,
assume fewer threads. */
srv_max_n_threads
=
50000
;
}
else
if
(
srv_pool_size
>=
8
*
1024
)
{
srv_max_n_threads
=
10000
;
}
else
{
srv_max_n_threads
=
1000
;
/* saves several MB of memory,
...
...
@@ -1103,7 +1089,7 @@ NetWare. */
computers */
}
#endif
err
=
srv_boot
();
err
=
srv_boot
();
/* This changes srv_pool_size to units of a page */
if
(
err
!=
DB_SUCCESS
)
{
...
...
innobase/trx/trx0undo.c
View file @
f93a60f1
...
...
@@ -404,7 +404,7 @@ trx_undo_seg_create(
ut_print_timestamp
(
stderr
);
fprintf
(
stderr
,
"InnoDB: Warning: cannot find a free slot for an undo log. Do you have too
\n
"
"InnoDB: many active transactions running concurrently?"
);
"InnoDB: many active transactions running concurrently?
\n
"
);
return
(
NULL
);
}
...
...
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