before crimson is able to peer, we should leave this option ON.
Signed-off-by: Kefu Chai <kchai@redhat.com>
OPTION(rgw_sts_client_id, OPT_STR) // Client Id
OPTION(rgw_sts_client_secret, OPT_STR) // Client Secret
OPTION(debug_allow_any_pool_priority, OPT_BOOL)
+
+OPTION(crimson_debug_pg_always_active, OPT_BOOL)
Option("debug_allow_any_pool_priority", Option::TYPE_BOOL, Option::LEVEL_DEV)
.set_default(false)
.set_description("Allow any pool priority to be set to test conversion to new range"),
+
+ Option("crimson_debug_pg_always_active", Option::TYPE_BOOL, Option::LEVEL_DEV)
+ .set_default(true)
+ .set_description("remove me once crimson peering works"),
});
}
seastar::future<> PG::wait_for_active()
{
logger().debug("wait_for_active: {}", pg_state_string(info.stats.state));
+ if (local_conf()->crimson_debug_pg_always_active) {
+ return seastar::now();
+ }
if (test_state(PG_STATE_ACTIVE)) {
return seastar::now();
} else {