]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: add some put()s of Session * that weren't being used properly.
authorGreg Farnum <gregf@hq.newdream.net>
Mon, 12 Apr 2010 22:31:06 +0000 (15:31 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Mon, 12 Apr 2010 22:31:16 +0000 (15:31 -0700)
This fixes a memory leak that could have caused problems in the future.

src/osd/OSD.cc

index 9525c65961199c4119e2451448fc77381107c014..0dac62dd45950efb24a99333f5490be7817786ef 100644 (file)
@@ -1621,6 +1621,7 @@ bool OSD::_share_map_incoming(const entity_inst_t& inst, epoch_t epoch,
     }
   }
 
+  session->put();
   return shared;
 }
 
@@ -4111,6 +4112,7 @@ void OSD::handle_op(MOSDOp *op)
   }
 
   OSDCaps& caps = session->caps;
+  session->put();
   int pool = pgid.pool();
   int perm = caps.get_pool_cap(pool, osdmap->get_pg_pool(pool)->v.auid);