]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: Clean up PG leak
authorGreg Farnum <gregory.farnum@dreamhost.com>
Thu, 8 Sep 2011 16:49:33 +0000 (09:49 -0700)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Thu, 8 Sep 2011 16:51:10 +0000 (09:51 -0700)
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
src/osd/OSD.cc

index 99e97e353532f1bbc9187a3761cd60bad48334d3..ad5e6d88a6a93d2ba9bd66e9f43315c3d2a16d90 100644 (file)
@@ -4597,6 +4597,7 @@ void OSD::_remove_pg(PG *pg)
 
   // remove from map
   pg_map.erase(pgid);
+  pg->put(); // since we've taken it out of map
   unreg_last_pg_scrub(pg->info.pgid, pg->info.history.last_scrub_stamp);
 
   _put_pool(pg->pool);