mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-16 08:12:12 +11:00
⚡ rest of log optimization
This commit is contained in:
parent
6ddcf08797
commit
01aedef7a3
1 changed files with 1 additions and 1 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in a new issue