From: Matan Breizman Date: Sun, 28 Jan 2024 16:17:35 +0000 (+0000) Subject: crimson/osd/shard_services: dispatch_context_messages use claim_and_reset X-Git-Tag: v19.3.0~110^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2fa8a07f2074bf364f7e6300d88bc5f84e22fc5b;p=ceph.git crimson/osd/shard_services: dispatch_context_messages use claim_and_reset Signed-off-by: Matan Breizman --- diff --git a/src/crimson/osd/shard_services.cc b/src/crimson/osd/shard_services.cc index 0a6a739af274..604c045eb9b8 100644 --- a/src/crimson/osd/shard_services.cc +++ b/src/crimson/osd/shard_services.cc @@ -764,8 +764,7 @@ seastar::future<> ShardServices::dispatch_context_transaction( DEBUG("do_transaction ..."); auto ret = get_store().do_transaction( col, - std::move(ctx.transaction)); - ctx.reset_transaction(); + ctx.transaction.claim_and_reset()); return ret; }