mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Better
This commit is contained in:
parent
5de6f86c27
commit
88c1744975
@ -157,8 +157,8 @@ public:
|
||||
assert(file_buffer && current_file_description);
|
||||
|
||||
assert(record.header.index - getStartIndex() <= current_file_description->expectedEntriesCountInLog());
|
||||
if (const bool log_is_complete = record.header.index - getStartIndex() == current_file_description->expectedEntriesCountInLog();
|
||||
log_is_complete)
|
||||
// check if log file reached the limit for amount of records it can contain
|
||||
if (record.header.index - getStartIndex() == current_file_description->expectedEntriesCountInLog())
|
||||
{
|
||||
rotate(record.header.index);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user