summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2017-04-10 11:04:31 +0530
committerjiffin tony Thottan <jthottan@redhat.com>2017-04-10 07:27:44 -0400
commitd5d599abaa598062885abc7ad8226faf26d11e64 (patch)
tree6db858d94e91403a2adee1d039c6551131e0d859
parenta2c3f86db8c9eea19359ddef9d9595b2d372814c (diff)
features/shard: Initialize local->fop in readv
Backport of: https://review.gluster.org/17014 Change-Id: I4d2f0a3f533009038d48579db5a8a2a048b77ca1 BUG: 1440635 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: https://review.gluster.org/17020 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
-rw-r--r--xlators/features/shard/src/shard.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/features/shard/src/shard.c b/xlators/features/shard/src/shard.c
index 9504f12..33c501f 100644
--- a/xlators/features/shard/src/shard.c
+++ b/xlators/features/shard/src/shard.c
@@ -3566,6 +3566,7 @@ shard_readv (call_frame_t *frame, xlator_t *this, fd_t *fd, size_t size,
local->offset = offset;
local->req_size = size;
local->flags = flags;
+ local->fop = GF_FOP_READ;
local->xattr_req = (xdata) ? dict_ref (xdata) : dict_new ();
if (!local->xattr_req)
goto err;