diff options
Diffstat (limited to 'xlators/features/changetimerecorder/src/ctr-helper.h')
-rw-r--r-- | xlators/features/changetimerecorder/src/ctr-helper.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/xlators/features/changetimerecorder/src/ctr-helper.h b/xlators/features/changetimerecorder/src/ctr-helper.h index 444b2c8f16..0d461aafe6 100644 --- a/xlators/features/changetimerecorder/src/ctr-helper.h +++ b/xlators/features/changetimerecorder/src/ctr-helper.h @@ -252,6 +252,13 @@ do {\ * ****************************************************************************/ /* + * If a bitrot fop + * */ +#define BITROT_FOP(frame)\ + (frame->root->pid == GF_CLIENT_PID_BITD) + + +/* * If a rebalancer fop * */ #define REBALANCE_FOP(frame)\ @@ -294,6 +301,9 @@ gf_boolean_t is_internal_fop (call_frame_t *frame, if (AFR_SELF_HEAL_FOP (frame)) { ret = _gf_true; } + if (BITROT_FOP (frame)) { + ret = _gf_true; + } if (REBALANCE_FOP (frame) || TIER_REBALANCE_FOP (frame)) { ret = _gf_true; if (xdata && dict_get (xdata, CTR_ATTACH_TIER_LOOKUP)) { |