summaryrefslogtreecommitdiffstats
path: root/xlators/features
diff options
context:
space:
mode:
authorJoseph Fernandes <josferna@redhat.com>2015-11-05 14:59:54 +0530
committerDan Lambright <dlambrig@redhat.com>2015-11-05 09:43:04 -0800
commitf31e551c5acdb64c6409531417a2490d53009795 (patch)
tree77c74b65a82441d4483aea0db73532ad7c6ada92 /xlators/features
parenta176028f2865875c68556f42e7d2c5a697d14046 (diff)
tier/ctr: Ignore bitrot related fops
Ignore bitrot related fops since they are internal fops. Change-Id: I5db8cf4e3fa1b186a6987eed54287bc0e964fbd4 BUG: 1278326 Signed-off-by: Joseph Fernandes <josferna@redhat.com> Reviewed-on: http://review.gluster.org/12512 Reviewed-by: N Balachandran <nbalacha@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Dan Lambright <dlambrig@redhat.com> Tested-by: Dan Lambright <dlambrig@redhat.com>
Diffstat (limited to 'xlators/features')
-rw-r--r--xlators/features/changetimerecorder/src/ctr-helper.h10
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 444b2c8f161..0d461aafe67 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)) {