mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
Bugfix for bug #1340, style fix before push
client/mysqlbinlog.cc: Small fix to avoid double initialization
This commit is contained in:
parent
f89e03fd78
commit
992587f411
1 changed files with 2 additions and 4 deletions
|
@ -200,10 +200,8 @@ public:
|
|||
}
|
||||
void process(Append_block_log_event *ae)
|
||||
{
|
||||
Create_file_log_event* ce= 0;
|
||||
|
||||
if (ae->file_id < file_names.elements)
|
||||
ce= *((Create_file_log_event**)file_names.buffer + ae->file_id);
|
||||
Create_file_log_event* ce= (ae->file_id < file_names.elements) ?
|
||||
*((Create_file_log_event**)file_names.buffer + ae->file_id) : 0;
|
||||
|
||||
if (ce)
|
||||
append_to_file(ce->fname,O_APPEND|O_BINARY|O_WRONLY,ae->block,ae->block_len);
|
||||
|
|
Loading…
Add table
Reference in a new issue