diff options
| author | levlam <levlam@telegram.org> | 2022-05-23 02:24:52 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2022-05-23 02:24:52 +0300 |
| commit | d06a7ddf1cc0fad2d833a1f8ba62dd9e2d84734b (patch) | |
| tree | 44e32ee2795094a4cea108fd88d48e5590f6bac2 /tddb | |
| parent | d04552045d076f3624e2ff18936c83e7f6544828 (diff) | |
Don't sync just created binlog.
Diffstat (limited to 'tddb')
| -rw-r--r-- | tddb/td/db/binlog/Binlog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tddb/td/db/binlog/Binlog.cpp b/tddb/td/db/binlog/Binlog.cpp index 4bc473728..5b14eed69 100644 --- a/tddb/td/db/binlog/Binlog.cpp +++ b/tddb/td/db/binlog/Binlog.cpp @@ -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 |
