]> git.proxmox.com Git - pve-manager.git/commitdiff
api: cephfs: reuse rados connection when polling for active MDS
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 26 Nov 2018 15:12:17 +0000 (16:12 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 27 Nov 2018 14:24:08 +0000 (15:24 +0100)
no point in recreating one, we have an active one from earlier

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Ceph/FS.pm

index f934bbc17a596d6c6c7cb1b01eafeff11f2ce88c..9915faaa8ccd815d26125c49eaabb4195132e0c4 100644 (file)
@@ -191,7 +191,7 @@ __PACKAGE__->register_method ({
                print "Adding '$fs_name' to storage configuration...\n";
 
                my $waittime = 0;
-               while (!PVE::CephTools::is_any_mds_active()) {
+               while (!PVE::CephTools::is_any_mds_active($rados)) {
                    if ($waittime >= 10) {
                        die "Need MDS to add storage, but none got active!\n";
                    }