Skip to content

Commit

Permalink
mgr/volumes: guard volume delete by waiting for pending ops
Browse files Browse the repository at this point in the history
Signed-off-by: Venky Shankar <vshankar@redhat.com>
  • Loading branch information
vshankar committed Oct 24, 2019
1 parent 2eb0c50 commit 968f675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pybind/mgr/volumes/fs/volume.py
Expand Up @@ -320,7 +320,7 @@ def delete_volume(self, volname, confirm):
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)
Expand Down

0 comments on commit 968f675

Please sign in to comment.