mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 18:05:44 +02:00
opt(server): Call reserve()
with correct argument (#1914)
This commit is contained in:
parent
5bc069f37e
commit
8cc448f6b4
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ void Transaction::InitShardData(absl::Span<const PerShardCache> shard_index, siz
|
|||
bool rev_mapping) {
|
||||
args_.reserve(num_args);
|
||||
if (rev_mapping)
|
||||
reverse_index_.reserve(args_.size());
|
||||
reverse_index_.reserve(num_args);
|
||||
|
||||
// Store the concatenated per-shard arguments from the shard index inside args_
|
||||
// and make each shard data point to its own sub-span inside args_.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue