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
3e841b77
Commit
3e841b77
authored
Mar 26, 2013
by
Seppo Jaakola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
References: MDEV-4328 - avoiding race condition for wsrep_format_desc access
parent
972acdb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
sql/wsrep_mysqld.cc
sql/wsrep_mysqld.cc
+6
-2
No files found.
sql/wsrep_mysqld.cc
View file @
3e841b77
...
...
@@ -976,8 +976,12 @@ int wsrep_to_buf_helper(
return
1
;
Query_log_event
ev
(
thd
,
query
,
query_len
,
FALSE
,
FALSE
,
FALSE
,
0
);
int
ret
(
0
);
wsrep_format_desc
->
checksum_alg
=
binlog_checksum_options
;
wsrep_format_desc
->
write
(
&
tmp_io_cache
);
Format_description_log_event
*
tmp_fd
=
new
Format_description_log_event
(
4
);
tmp_fd
->
checksum_alg
=
binlog_checksum_options
;
tmp_fd
->
write
(
&
tmp_io_cache
);
delete
tmp_fd
;
if
(
ev
.
write
(
&
tmp_io_cache
))
ret
=
1
;
if
(
!
ret
&&
wsrep_write_cache
(
&
tmp_io_cache
,
buf
,
buf_len
))
ret
=
1
;
close_cached_file
(
&
tmp_io_cache
);
...
...
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