fix deserialize log order.

This commit is contained in:
zhangxiao871 2021-09-15 01:19:19 +08:00
parent ba33fbbf1d
commit c86832b1d7

View File

@ -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);
} }
} }