Skip to content

Commit 2fa8a07

Browse files
committed
crimson/osd/shard_services: dispatch_context_messages use claim_and_reset
Signed-off-by: Matan Breizman <[email protected]>
1 parent 4b514af commit 2fa8a07

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/crimson/osd/shard_services.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -764,8 +764,7 @@ seastar::future<> ShardServices::dispatch_context_transaction(
764764
DEBUG("do_transaction ...");
765765
auto ret = get_store().do_transaction(
766766
col,
767-
std::move(ctx.transaction));
768-
ctx.reset_transaction();
767+
ctx.transaction.claim_and_reset());
769768
return ret;
770769
}
771770

0 commit comments

Comments
 (0)