]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: fix fs add_data_pool setting wrong pool metadata 24125/head
authorJohn Spray <john.spray@redhat.com>
Mon, 17 Sep 2018 07:19:33 +0000 (08:19 +0100)
committerJohn Spray <john.spray@redhat.com>
Mon, 17 Sep 2018 07:19:33 +0000 (08:19 +0100)
Fixes: http://tracker.ceph.com/issues/36028
Signed-off-by: John Spray <john.spray@redhat.com>
src/mon/FSCommands.cc

index d8664fd7f1507c33981f700a7260d9e5d9172c65..baff0375464fd0e0b57f2607f3f18288b6a88900 100644 (file)
@@ -614,7 +614,7 @@ class AddDataPoolHandler : public FileSystemCommandHandler
     }
     mon->osdmon()->do_application_enable(poolid,
                                         pg_pool_t::APPLICATION_NAME_CEPHFS,
-                                        "data", poolname);
+                                        "data", fs_name);
     mon->osdmon()->propose_pending();
 
     fsmap.modify_filesystem(