]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common/config: Make sure legacy_values are updated 36807/head
authorBrad Hubbard <bhubbard@redhat.com>
Tue, 25 Aug 2020 11:07:06 +0000 (21:07 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Thu, 27 Aug 2020 02:45:26 +0000 (12:45 +1000)
Must be updated after final change to 'values'

Fixes: https://tracker.ceph.com/issues/47002
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
src/common/config.cc

index 04e5c54fc57c14ea9f80499bc7c45ce5b74e6a40..129cb344dac59121c9d41e41a38e04ec6cd0b842 100644 (file)
@@ -386,6 +386,7 @@ int md_config_t::parse_config_files(ConfigValues& values,
   if (values.cluster.empty()) {
     values.cluster = get_cluster_name(conffile.c_str());
   }
+  update_legacy_vals(values);
   return 0;
 }
 
@@ -418,7 +419,6 @@ md_config_t::parse_buffer(ConfigValues& values,
     }
   }
   cf.check_old_style_section_names({"mds", "mon", "osd"}, cerr);
-  update_legacy_vals(values);
   return 0;
 }