mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 13:13:36 +00:00
fix deserialize log order.
This commit is contained in:
parent
ba33fbbf1d
commit
c86832b1d7
@ -587,9 +587,9 @@ void deserializeLogsAndApplyToStorage(KeeperStorage & storage, const std::string
|
||||
}
|
||||
}
|
||||
|
||||
for (auto & log_path : stored_files)
|
||||
for (auto it = stored_files.rbegin(); it != stored_files.rend(); ++it)
|
||||
{
|
||||
deserializeLogAndApplyToStorage(storage, log_path, log);
|
||||
deserializeLogAndApplyToStorage(storage, *it, log);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user