diff options
author | Raghavendra Bhat <raghavendra@redhat.com> | 2016-05-12 16:40:04 -0400 |
---|---|---|
committer | Raghavendra Bhat <raghavendra@redhat.com> | 2017-04-18 23:29:46 -0400 |
commit | e3d9018f2ddc28548c0aa18960a3a524521c9ad7 (patch) | |
tree | 75021b8f2456708d2d902e4c6e7ea54958173d64 /xlators/features/bit-rot/src/stub/bit-rot-stub-helpers.c | |
parent | 10dad995c989e9d77c341135d7c48817baba966c (diff) |
features/bit-rot-stub: bring in optional versioning
* As of now bit-rot-stub does versioning always. This leads
lots of getxattr calls being made in lookups. So make
object versioning optional.
Change-Id: I83713e45ae59fb28004bb3cfa008f2d69edebbfa
BUG: 1359599
Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com>
Signed-off-by: Kotresh HR <khiremat@redhat.com>
Reviewed-on: https://review.gluster.org/14442
Smoke: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/features/bit-rot/src/stub/bit-rot-stub-helpers.c')
-rw-r--r-- | xlators/features/bit-rot/src/stub/bit-rot-stub-helpers.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/features/bit-rot/src/stub/bit-rot-stub-helpers.c b/xlators/features/bit-rot/src/stub/bit-rot-stub-helpers.c index 59588d04f5c..47715b85106 100644 --- a/xlators/features/bit-rot/src/stub/bit-rot-stub-helpers.c +++ b/xlators/features/bit-rot/src/stub/bit-rot-stub-helpers.c @@ -399,8 +399,11 @@ br_stub_lookup_wrapper (call_frame_t *frame, xlator_t *this, struct iatt stbuf = {0, }; struct iatt postparent = {0,}; dict_t *xattr = NULL; + gf_boolean_t ver_enabled = _gf_false; + BR_STUB_VER_ENABLED_IN_CALLPATH(frame, ver_enabled); priv = this->private; + BR_STUB_VER_COND_GOTO (priv, (!ver_enabled), done); VALIDATE_OR_GOTO (loc, done); if (gf_uuid_compare (loc->gfid, priv->bad_object_dir_gfid)) |