rest of log optimization

This commit is contained in:
EntireTwix 2023-01-12 00:55:08 -08:00
parent 6ddcf08797
commit 01aedef7a3

View file

@ -96,7 +96,7 @@ std::string Log::GetLogsRange(size_t start, size_t length) noexcept
++log_index_n;
}
size_t log_index_m = log_snapshot_v2.size() - log_index_n;
if (length != MAX_LOG_SIZE)
if ((start + length + 1) != MAX_LOG_SIZE)
{
log_index_m = 0;
while(i < log_snapshot_v2.size())