]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: let librados finish initializing the global context
authorJason Dillaman <dillaman@redhat.com>
Thu, 30 Jul 2020 17:12:20 +0000 (13:12 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 20 Aug 2020 14:35:30 +0000 (10:35 -0400)
librados will retrieve a bootstrap config update from the MONs
after connecting and then finish initializing the context. In
general, non-primitive config options cannot be updated after
initialization is complete. This prevents the rbd CLI from
supporting non-primitive config overrides from the MON.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/tools/rbd/Utils.cc

index 52c569f44feb6f7b462f1aab48a08df2b3f8d8de..e9497fbe417b0663ef456db0946c1b3e8d471cad 100644 (file)
@@ -677,7 +677,6 @@ int get_snap_create_flags(const po::variables_map &vm, uint32_t *flags) {
 void init_context() {
   g_conf().set_val_or_die("rbd_cache_writethrough_until_flush", "false");
   g_conf().apply_changes(nullptr);
-  common_init_finish(g_ceph_context);
 }
 
 int init_rados(librados::Rados *rados) {