]> git-server-git.apps.pok.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)
committerMykola Golub <mgolub@suse.com>
Mon, 14 Jun 2021 12:14:31 +0000 (15:14 +0300)
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>
(cherry picked from commit f6c6887fe702190c65245502f04aba5941a4fa15)

src/tools/rbd/Utils.cc

index 903e35ca755f9718914013fabe265cd69257270b..69cb7c6baec3d5da9c29b0158cc32a64f04de6b6 100644 (file)
@@ -661,7 +661,6 @@ int get_formatter(const po::variables_map &vm,
 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) {