]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG: delete mark_all_unfound_lost transactions after completion
authorGreg Farnum <greg@inktank.com>
Fri, 28 Feb 2014 19:08:17 +0000 (11:08 -0800)
committerSamuel Just <sam.just@inktank.com>
Sat, 1 Mar 2014 22:53:14 +0000 (14:53 -0800)
This was a minor memory leak.

Signed-off-by: Greg Farnum <greg@inktank.com>
src/osd/ReplicatedPG.cc

index 32171c3ba4bbf6ca9e60460f42d8957b7da50883..b9b0b2664594f1cfa626c9c27b1b07d7cbdcbecb 100644 (file)
@@ -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