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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
d2c74eb9
Commit
d2c74eb9
authored
Feb 26, 2009
by
Mikael Ronstrom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trying a workaround for the Windows crashes
parent
72fbdeec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
storage/innobase/srv/srv0start.c
storage/innobase/srv/srv0start.c
+9
-1
No files found.
storage/innobase/srv/srv0start.c
View file @
d2c74eb9
...
@@ -1249,6 +1249,14 @@ innobase_start_or_create_for_mysql(void)
...
@@ -1249,6 +1249,14 @@ innobase_start_or_create_for_mysql(void)
return
(
DB_ERROR
);
return
(
DB_ERROR
);
}
}
#ifdef __WIN__
/*
Need to hardcode this to 2 read and 2 write on Windows
while searching for problem causing this to crash when
higher number of threads are supported.
*/
srv_n_read_io_threads
=
srv_n_write_io_threads
=
2
;
#endif
/* Restrict the maximum number of file i/o threads */
/* Restrict the maximum number of file i/o threads */
if
((
srv_n_read_io_threads
+
srv_n_write_io_threads
)
>
SRV_MAX_N_IO_THREADS
)
{
if
((
srv_n_read_io_threads
+
srv_n_write_io_threads
)
>
SRV_MAX_N_IO_THREADS
)
{
fprintf
(
stderr
,
fprintf
(
stderr
,
...
@@ -1267,7 +1275,7 @@ innobase_start_or_create_for_mysql(void)
...
@@ -1267,7 +1275,7 @@ innobase_start_or_create_for_mysql(void)
SRV_MAX_N_PENDING_SYNC_IOS
);
SRV_MAX_N_PENDING_SYNC_IOS
);
}
else
{
}
else
{
/* Might need more slots here. Alas, I don't do windows. */
/* Might need more slots here. Alas, I don't do windows. */
n_threads
=
os_aio_init
(
8
*
SRV_N_PENDING_IOS_PER_THREAD
,
n_threads
=
os_aio_init
(
SRV_N_PENDING_IOS_PER_THREAD
,
srv_n_read_io_threads
,
srv_n_read_io_threads
,
srv_n_write_io_threads
,
srv_n_write_io_threads
,
SRV_MAX_N_PENDING_SYNC_IOS
);
SRV_MAX_N_PENDING_SYNC_IOS
);
...
...
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