mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Remove possibly redundant allocations
This commit is contained in:
parent
e447dd72f4
commit
f8a581daba
@ -447,7 +447,7 @@ LogEntryPtr Changelog::getLastEntry() const
|
||||
if (entry == logs.end())
|
||||
return fake_entry;
|
||||
|
||||
return makeClone(entry->second);
|
||||
return entry->second;
|
||||
}
|
||||
|
||||
LogEntriesPtr Changelog::getLogEntriesBetween(size_t start, size_t end)
|
||||
@ -472,7 +472,7 @@ LogEntryPtr Changelog::entryAt(size_t index)
|
||||
return nullptr;
|
||||
|
||||
src = entry->second;
|
||||
return makeClone(src);
|
||||
return src;
|
||||
}
|
||||
|
||||
nuraft::ptr<nuraft::buffer> Changelog::serializeEntriesToBuffer(size_t index, int32_t count)
|
||||
|
Loading…
Reference in New Issue
Block a user