]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG: don't leak reservation on removal
authorSamuel Just <sam.just@inktank.com>
Sun, 10 Mar 2013 19:50:01 +0000 (12:50 -0700)
committerSamuel Just <sam.just@inktank.com>
Fri, 15 Mar 2013 19:08:03 +0000 (12:08 -0700)
Fixes: 4431
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
(cherry picked from commit 32bf131e0141faf407b5ff993f75f97516b27c12)

Conflicts:

src/osd/ReplicatedPG.cc

src/osd/ReplicatedPG.cc

index 8152240102cfe6e6274929e401a48afdb364cec3..938715dbf08b2653457475438c7339bb30f11cb3 100644 (file)
@@ -6246,6 +6246,9 @@ void ReplicatedPG::on_removal()
   dout(10) << "on_removal" << dendl;
   apply_and_flush_repops(false);
   remove_watchers_and_notifies();
+
+  osd->remote_reserver.cancel_reservation(info.pgid);
+  osd->local_reserver.cancel_reservation(info.pgid);
 }
 
 void ReplicatedPG::on_shutdown()