Update src/storage/v3/shard_rsm.cpp

Co-authored-by: János Benjamin Antal <antaljanosbenjamin@users.noreply.github.com>
This commit is contained in:
Jeremy B 2022-11-17 12:42:36 +01:00 committed by GitHub
parent c4e22ffde3
commit 68e51e73ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -563,7 +563,7 @@ msgs::ReadResponses ShardRsm::HandleRead(msgs::ExpandOneRequest &&req) {
break;
}
results.emplace_back(maybe_result.value());
results.emplace_back(std::move(maybe_result.value()));
if (batch_limit.has_value() && results.size() >= batch_limit.value()) {
break;
}