From 17dde040056c3e6afc9ba93cf498e5331b23a63b Mon Sep 17 00:00:00 2001
From: Krutika Dhananjay <kdhananj@redhat.com>
Date: Mon, 10 Apr 2017 11:04:31 +0530
Subject: [PATCH 413/426] features/shard: Initialize local->fop in readv
Backport of: https://review.gluster.org/17014
Change-Id: I3f035aa9f9ad973cfd159064f3424675bb488fdd
BUG: 1434653
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/105207
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
---
xlators/features/shard/src/shard.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/xlators/features/shard/src/shard.c b/xlators/features/shard/src/shard.c
index eabed90..4dd581d 100644
--- a/xlators/features/shard/src/shard.c
+++ b/xlators/features/shard/src/shard.c
@@ -3596,6 +3596,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;
--
1.8.3.1