From: Greg Farnum Date: Fri, 28 Feb 2014 19:08:17 +0000 (-0800) Subject: ReplicatedPG: delete mark_all_unfound_lost transactions after completion X-Git-Tag: v0.78~106^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1ea59f6c421e47a2c2bead8e9fac83395b270efe;p=ceph.git ReplicatedPG: delete mark_all_unfound_lost transactions after completion This was a minor memory leak. Signed-off-by: Greg Farnum --- 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