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
39a0c2e6
Commit
39a0c2e6
authored
Jul 08, 2010
by
Luis Soares
Browse files
Options
Browse Files
Download
Plain Diff
BUG 54509: automerged bzr bundle from bug report.
parents
eb1c3e85
f24e98f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
sql/rpl_mi.cc
sql/rpl_mi.cc
+22
-0
No files found.
sql/rpl_mi.cc
View file @
39a0c2e6
...
...
@@ -164,7 +164,29 @@ int init_master_info(Master_info* mi, const char* master_info_fname,
*/
if
(
thread_mask
&
SLAVE_SQL
)
{
bool
hot_log
=
FALSE
;
/*
my_b_seek does an implicit flush_io_cache, so we need to:
1. check if this log is active (hot)
2. if it is we keep log_lock until the seek ends, otherwise
release it right away.
If we did not take log_lock, SQL thread might race with IO
thread for the IO_CACHE mutex.
*/
mysql_mutex_t
*
log_lock
=
mi
->
rli
.
relay_log
.
get_log_lock
();
mysql_mutex_lock
(
log_lock
);
hot_log
=
mi
->
rli
.
relay_log
.
is_active
(
mi
->
rli
.
linfo
.
log_file_name
);
if
(
!
hot_log
)
mysql_mutex_unlock
(
log_lock
);
my_b_seek
(
mi
->
rli
.
cur_log
,
(
my_off_t
)
0
);
if
(
hot_log
)
mysql_mutex_unlock
(
log_lock
);
}
DBUG_RETURN
(
0
);
}
...
...
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