Commit c4384241 authored by dlenev@mysql.com's avatar dlenev@mysql.com

Bugfix for bug #1340, style fix before push

parent 3c55dbe3
...@@ -200,10 +200,8 @@ public: ...@@ -200,10 +200,8 @@ public:
} }
void process(Append_block_log_event *ae) void process(Append_block_log_event *ae)
{ {
Create_file_log_event* ce= 0; Create_file_log_event* ce= (ae->file_id < file_names.elements) ?
*((Create_file_log_event**)file_names.buffer + ae->file_id) : 0;
if (ae->file_id < file_names.elements)
ce= *((Create_file_log_event**)file_names.buffer + ae->file_id);
if (ce) if (ce)
append_to_file(ce->fname,O_APPEND|O_BINARY|O_WRONLY,ae->block,ae->block_len); append_to_file(ce->fname,O_APPEND|O_BINARY|O_WRONLY,ae->block,ae->block_len);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment