From 1ea59f6c421e47a2c2bead8e9fac83395b270efe Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Fri, 28 Feb 2014 11:08:17 -0800 Subject: [PATCH] ReplicatedPG: delete mark_all_unfound_lost transactions after completion This was a minor memory leak. Signed-off-by: Greg Farnum --- src/osd/ReplicatedPG.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 32171c3ba4b..b9b0b266459 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -8738,6 +8738,8 @@ void ReplicatedPG::mark_all_unfound_lost(int what) dirty_info = true; write_if_dirty(*t); + t->register_on_complete(new ObjectStore::C_DeleteTransaction(t)); + osd->store->queue_transaction(osr.get(), t, c, NULL, new C_OSD_OndiskWriteUnlockList(&c->obcs)); // Send out the PG log to all replicas -- 2.47.3