From d5d599abaa598062885abc7ad8226faf26d11e64 Mon Sep 17 00:00:00 2001 From: Krutika Dhananjay Date: Mon, 10 Apr 2017 11:04:31 +0530 Subject: features/shard: Initialize local->fop in readv Backport of: https://review.gluster.org/17014 Change-Id: I4d2f0a3f533009038d48579db5a8a2a048b77ca1 BUG: 1440635 Signed-off-by: Krutika Dhananjay Reviewed-on: https://review.gluster.org/17020 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System Reviewed-by: Pranith Kumar Karampuri CentOS-regression: Gluster Build System --- 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 9504f12da85..33c501f8498 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; -- cgit