[pve-devel] [PATCH manager 2/3] api: cephfs: reuse rados connection when polling for active MDS

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Nov 26 18:22:29 CET 2018


no point in recreating one, we have an active one from earlier

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 PVE/API2/Ceph/FS.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/API2/Ceph/FS.pm b/PVE/API2/Ceph/FS.pm
index f934bbc1..9915faaa 100644
--- a/PVE/API2/Ceph/FS.pm
+++ b/PVE/API2/Ceph/FS.pm
@@ -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";
 		    }
-- 
2.19.1





More information about the pve-devel mailing list