Skip to content

Commit

Permalink
Don't sync just created binlog.
Browse files Browse the repository at this point in the history
  • Loading branch information
levlam committed May 22, 2022
1 parent d045520 commit d06a7dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tddb/td/db/binlog/Binlog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ void Binlog::do_reindex() {
event.realloc();
do_event(std::move(event)); // NB: no move is actually happens
});
need_sync_ = true; // must sync creation of the file
need_sync_ = start_size != 0; // must sync creation of the file if it is non-empty
sync();

// finish_reindex
Expand Down

0 comments on commit d06a7dd

Please sign in to comment.