diff --git a/src/storage/v3/shard_rsm.cpp b/src/storage/v3/shard_rsm.cpp index 4ea874770..e533008a1 100644 --- a/src/storage/v3/shard_rsm.cpp +++ b/src/storage/v3/shard_rsm.cpp @@ -533,7 +533,7 @@ msgs::ReadResponses ShardRsm::HandleRead(msgs::GetPropertiesRequest &&req) { std::vector<std::pair<PropertyId, Value>> result; result.reserve(value.size()); for (auto &[id, val] : value) { - result.push_back({id, std::move(val)}); + result.emplace_back(std::make_pair(id, std::move(val))); } return result; };