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
dc55af92
Commit
dc55af92
authored
Jul 12, 2005
by
lars@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#6987: Added note when stat is failing on relay log, added mutex for log rotatation.
parent
0c5ac2dd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
sql/log.cc
sql/log.cc
+2
-0
sql/slave.cc
sql/slave.cc
+2
-0
No files found.
sql/log.cc
View file @
dc55af92
...
...
@@ -853,6 +853,8 @@ int MYSQL_LOG::purge_logs(const char *to_log,
of space that deletion will free. In most cases,
deletion won't work either, so it's not a problem.
*/
sql_print_information
(
"Failed to execute my_stat on file '%s'"
,
log_info
.
log_file_name
);
tmp
=
0
;
}
}
...
...
sql/slave.cc
View file @
dc55af92
...
...
@@ -4462,6 +4462,7 @@ void rotate_relay_log(MASTER_INFO* mi)
RELAY_LOG_INFO
*
rli
=
&
mi
->
rli
;
lock_slave_threads
(
mi
);
pthread_mutex_lock
(
&
mi
->
data_lock
);
pthread_mutex_lock
(
&
rli
->
data_lock
);
/*
We need to test inited because otherwise, new_file() will attempt to lock
...
...
@@ -4492,6 +4493,7 @@ void rotate_relay_log(MASTER_INFO* mi)
rli
->
relay_log
.
harvest_bytes_written
(
&
rli
->
log_space_total
);
end:
pthread_mutex_unlock
(
&
rli
->
data_lock
);
pthread_mutex_unlock
(
&
mi
->
data_lock
);
unlock_slave_threads
(
mi
);
DBUG_VOID_RETURN
;
}
...
...
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