opt(server): Call reserve() with correct argument (#1914)

This commit is contained in:
Shahar Mike 2023-09-22 11:47:49 +03:00 committed by GitHub
parent 5bc069f37e
commit 8cc448f6b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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_.