diff options
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-op-sm.c | 7 | ||||
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volume-set.c | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c index 38b5edba67b..d22b0c571db 100644 --- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c +++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c @@ -1594,6 +1594,13 @@ _delete_reconfig_opt (dict_t *this, char *key, data_t *value, void *data) gf_log ("", GF_LOG_DEBUG, "deleting dict with key=%s,value=%s", key, value->data); dict_del (this, key); + /**Delete scrubber (pause/resume) option from the dictionary if bitrot + * option is going to be reset + * */ + if (!strncmp (key, VKEY_FEATURES_BITROT, + strlen (VKEY_FEATURES_BITROT))) { + dict_del (this, VKEY_FEATURES_SCRUB); + } out: return 0; } diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c index cdcb594258f..ec107b55bf7 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c +++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c @@ -1846,6 +1846,7 @@ struct volopt_map_entry glusterd_volopt_map[] = { .voltype = "features/bitrot", .option = "scrubber", .op_version = GD_OP_VERSION_3_7_0, + .flags = OPT_FLAG_FORCE, .type = NO_DOC, }, /* Upcall translator options */ |