]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
RGW - Allow starting RGW/dbstore without connecting to Mons
authorDaniel Gryniewicz <dang@redhat.com>
Thu, 21 Apr 2022 15:45:44 +0000 (11:45 -0400)
committerDaniel Gryniewicz <dang@redhat.com>
Wed, 27 Apr 2022 18:04:36 +0000 (14:04 -0400)
commit0c50cecb29f6b7e554703c61061d0bb3066c3af4
treef595d351b780287e1e5b412f12ab5680f25518f3
parent7d7fb643da070e68612eda342c385e3235397568
RGW - Allow starting RGW/dbstore without connecting to Mons

DBStore, and some other Stores like Motr, don't need to connect to the
Mons to work.  However, startup automatically connects to the mons.
There's provision to not connect, but the split isn't quite right.  We
need to call global_pre_init() to get config from the file, to determine
which store to start, but we then need to decide before calling
global_init() whether the configured store needs to connect to the mons.

This requires a slight change to global_init() to set no_mon_config from
the new flags.

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
src/global/global_init.cc
src/rgw/librgw.cc
src/rgw/rgw_common.cc
src/rgw/rgw_common.h
src/rgw/rgw_main.cc
src/rgw/rgw_sal_dbstore.cc