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
7d9aa51e
Commit
7d9aa51e
authored
Jan 31, 2012
by
Inaam Rana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug#13636122: mysql-5.1 => mysql-5.5
parent
d7f9ce82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
6 deletions
+25
-6
storage/innobase/fil/fil0fil.c
storage/innobase/fil/fil0fil.c
+25
-6
No files found.
storage/innobase/fil/fil0fil.c
View file @
7d9aa51e
...
@@ -964,11 +964,6 @@ fil_mutex_enter_and_prepare_for_io(
...
@@ -964,11 +964,6 @@ fil_mutex_enter_and_prepare_for_io(
return
;
return
;
}
}
if
(
fil_system
->
n_open
<
fil_system
->
max_n_open
)
{
return
;
}
space
=
fil_space_get_by_id
(
space_id
);
space
=
fil_space_get_by_id
(
space_id
);
if
(
space
!=
NULL
&&
space
->
stop_ios
)
{
if
(
space
!=
NULL
&&
space
->
stop_ios
)
{
...
@@ -985,6 +980,25 @@ fil_mutex_enter_and_prepare_for_io(
...
@@ -985,6 +980,25 @@ fil_mutex_enter_and_prepare_for_io(
mutex_exit
(
&
fil_system
->
mutex
);
mutex_exit
(
&
fil_system
->
mutex
);
#ifndef UNIV_HOTBACKUP
/* Wake the i/o-handler threads to make sure pending
i/o's are performed */
os_aio_simulated_wake_handler_threads
();
/* The sleep here is just to give IO helper threads a
bit of time to do some work. It is not required that
all IO related to the tablespace being renamed must
be flushed here as we do fil_flush() in
fil_rename_tablespace() as well. */
os_thread_sleep
(
20000
);
#endif
/* UNIV_HOTBACKUP */
/* Flush tablespaces so that we can close modified
files in the LRU list */
fil_flush_file_spaces
(
FIL_TABLESPACE
);
os_thread_sleep
(
20000
);
os_thread_sleep
(
20000
);
count2
++
;
count2
++
;
...
@@ -992,6 +1006,11 @@ fil_mutex_enter_and_prepare_for_io(
...
@@ -992,6 +1006,11 @@ fil_mutex_enter_and_prepare_for_io(
goto
retry
;
goto
retry
;
}
}
if
(
fil_system
->
n_open
<
fil_system
->
max_n_open
)
{
return
;
}
/* If the file is already open, no need to do anything; if the space
/* If the file is already open, no need to do anything; if the space
does not exist, we handle the situation in the function which called
does not exist, we handle the situation in the function which called
this function */
this function */
...
@@ -2551,7 +2570,7 @@ fil_rename_tablespace(
...
@@ -2551,7 +2570,7 @@ fil_rename_tablespace(
retry:
retry:
count
++
;
count
++
;
if
(
count
>
1000
)
{
if
(
!
(
count
%
1000
)
)
{
ut_print_timestamp
(
stderr
);
ut_print_timestamp
(
stderr
);
fputs
(
" InnoDB: Warning: problems renaming "
,
stderr
);
fputs
(
" InnoDB: Warning: problems renaming "
,
stderr
);
ut_print_filename
(
stderr
,
old_name
);
ut_print_filename
(
stderr
,
old_name
);
...
...
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