mirror of
https://github.com/ceph/ceph
synced 2025-04-11 04:02:04 +00:00
crimson/osd: add crimson_debug_pg_always_active option
before crimson is able to peer, we should leave this option ON. Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
ee796ade48
commit
9813f7d623
src
@ -1538,3 +1538,5 @@ OPTION(rgw_sts_token_introspection_url, OPT_STR) // url for introspecting web t
|
|||||||
OPTION(rgw_sts_client_id, OPT_STR) // Client Id
|
OPTION(rgw_sts_client_id, OPT_STR) // Client Id
|
||||||
OPTION(rgw_sts_client_secret, OPT_STR) // Client Secret
|
OPTION(rgw_sts_client_secret, OPT_STR) // Client Secret
|
||||||
OPTION(debug_allow_any_pool_priority, OPT_BOOL)
|
OPTION(debug_allow_any_pool_priority, OPT_BOOL)
|
||||||
|
|
||||||
|
OPTION(crimson_debug_pg_always_active, OPT_BOOL)
|
||||||
|
@ -8240,6 +8240,10 @@ std::vector<Option> get_mds_client_options() {
|
|||||||
Option("debug_allow_any_pool_priority", Option::TYPE_BOOL, Option::LEVEL_DEV)
|
Option("debug_allow_any_pool_priority", Option::TYPE_BOOL, Option::LEVEL_DEV)
|
||||||
.set_default(false)
|
.set_default(false)
|
||||||
.set_description("Allow any pool priority to be set to test conversion to new range"),
|
.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"),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -960,6 +960,9 @@ seastar::future<> PG::share_pg_info()
|
|||||||
seastar::future<> PG::wait_for_active()
|
seastar::future<> PG::wait_for_active()
|
||||||
{
|
{
|
||||||
logger().debug("wait_for_active: {}", pg_state_string(info.stats.state));
|
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)) {
|
if (test_state(PG_STATE_ACTIVE)) {
|
||||||
return seastar::now();
|
return seastar::now();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user