diff options
author | Joseph Fernandes <josferna@redhat.com> | 2015-11-05 14:59:54 +0530 |
---|---|---|
committer | Dan Lambright <dlambrig@redhat.com> | 2015-11-07 20:04:18 -0800 |
commit | f0193ce9b6b76647483f1380e7a8d791a5e64e61 (patch) | |
tree | 4096a1e15da92bf2c31be8bdbf9a1f7fa0d5f547 /xlators | |
parent | 5b989f034d522ffe8c311481b7ef2064358cb06f (diff) |
tier/ctr: Ignore bitrot related fops
Ignore bitrot related fops since they are internal fops.
Backport of http://review.gluster.org/#/c/12512/
Change-Id: I5b676fe450d266b95bbd25aeca0d54436e098917
BUG: 1278640
Signed-off-by: Joseph Fernandes <josferna@redhat.com>
Reviewed-on: http://review.gluster.org/12533
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Dan Lambright <dlambrig@redhat.com>
Diffstat (limited to 'xlators')
-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 e0304140fc4..654607fb852 100644 --- a/xlators/features/changetimerecorder/src/ctr-helper.h +++ b/xlators/features/changetimerecorder/src/ctr-helper.h @@ -257,6 +257,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)\ @@ -299,6 +306,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)) { |