From 9d136a440ca0ad2f3a513276e13034c6684520e7 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Mon, 28 Oct 2013 13:49:23 -0700 Subject: [PATCH] ReplicatedPG: no need to clear repop->*obc Signed-off-by: Samuel Just --- src/osd/ReplicatedPG.cc | 9 --------- src/osd/ReplicatedPG.h | 1 - 2 files changed, 10 deletions(-) diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index b5ce71cb0af5f..4d893a534b1c5 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -4656,15 +4656,6 @@ void ReplicatedPG::op_applied(RepGather *repop) // (logical) local ack. int whoami = osd->get_nodeid(); - if (repop->ctx->clone_obc) { - repop->ctx->clone_obc = ObjectContextRef(); - } - if (repop->ctx->snapset_obc) { - repop->ctx->snapset_obc = ObjectContextRef(); - } - - repop->src_obc.clear(); - if (!repop->aborted) { assert(repop->waitfor_ack.count(whoami) || repop->waitfor_disk.count(whoami) == 0); // commit before ondisk diff --git a/src/osd/ReplicatedPG.h b/src/osd/ReplicatedPG.h index 181da6e6bf625..a704df854b0d6 100644 --- a/src/osd/ReplicatedPG.h +++ b/src/osd/ReplicatedPG.h @@ -411,7 +411,6 @@ public: } } ~OpContext() { - assert(!clone_obc); assert(lock_to_release == NONE); if (reply) reply->put(); -- 2.39.5