mirror of
https://github.com/ceph/ceph
synced 2025-01-03 17:42:36 +00:00
mon/OSDMonitor: introduce debug option to allow filestore for ec overwrites
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
bd58423b97
commit
b540b4299d
@ -383,6 +383,7 @@ OPTION(mon_debug_dump_transactions, OPT_BOOL, false)
|
||||
OPTION(mon_debug_dump_json, OPT_BOOL, false)
|
||||
OPTION(mon_debug_dump_location, OPT_STR, "/var/log/ceph/$cluster-$name.tdump")
|
||||
OPTION(mon_debug_no_require_luminous, OPT_BOOL, false)
|
||||
OPTION(mon_debug_no_require_bluestore_for_ec_overwrites, OPT_BOOL, false)
|
||||
OPTION(mon_inject_transaction_delay_max, OPT_DOUBLE, 10.0) // seconds
|
||||
OPTION(mon_inject_transaction_delay_probability, OPT_DOUBLE, 0) // range [0, 1]
|
||||
|
||||
|
@ -5994,7 +5994,8 @@ int OSDMonitor::prepare_command_pool_set(map<string,cmd_vartype> &cmdmap,
|
||||
return -EINVAL;
|
||||
}
|
||||
stringstream err;
|
||||
if (!is_pool_currently_all_bluestore(pool, p, &err)) {
|
||||
if (!g_conf->mon_debug_no_require_bluestore_for_ec_overwrites &&
|
||||
!is_pool_currently_all_bluestore(pool, p, &err)) {
|
||||
ss << "pool must only be stored on bluestore for scrubbing to work: " << err.str();
|
||||
return -EINVAL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user