]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/volumes: guard volume delete by waiting for pending ops
authorVenky Shankar <vshankar@redhat.com>
Fri, 11 Oct 2019 07:44:32 +0000 (03:44 -0400)
committerVenky Shankar <vshankar@redhat.com>
Thu, 24 Oct 2019 07:34:44 +0000 (03:34 -0400)
Signed-off-by: Venky Shankar <vshankar@redhat.com>
src/pybind/mgr/volumes/fs/volume.py

index 0d62fe040bf15605fb7e112531b1eba693bbe602..83debbc29449f7272dc075e11a8b96c0abd61ad7 100644 (file)
@@ -320,7 +320,7 @@ class VolumeClient(object):
             return -errno.ESHUTDOWN, "", "shutdown in progress"
 
         self.purge_queue.cancel_purge_job(volname)
-        self.connection_pool.del_fs_handle(volname)
+        self.connection_pool.del_fs_handle(volname, wait=True)
         # Tear down MDS daemons
         try:
             completion = self.mgr.remove_mds(volname)