summaryrefslogtreecommitdiffstats
path: root/xlators/features/shard
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2015-07-28 11:25:55 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2015-07-30 00:28:18 -0700
commit2bb92b4837ee81b826c615b2e2280bf37fc5906f (patch)
tree73fc649f9e889ab3bfff518eefba0c1c7adb2e38 /xlators/features/shard
parent68059dbe0116150cac06958f95832fd1bda54cfb (diff)
features/shard: (Re)initialize local->call_count before winding lookup
Backport of: http://review.gluster.org/11770 Change-Id: I96c86823b82595b471b09b75cc813a02dcc96663 BUG: 1247833 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/11783 Tested-by: Gluster Build System <jenkins@build.gluster.com> Tested-by: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'xlators/features/shard')
-rw-r--r--xlators/features/shard/src/shard.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/xlators/features/shard/src/shard.c b/xlators/features/shard/src/shard.c
index da95b92ecd9..6f3acdd40bd 100644
--- a/xlators/features/shard/src/shard.c
+++ b/xlators/features/shard/src/shard.c
@@ -2483,11 +2483,13 @@ shard_post_mknod_readv_handler (call_frame_t *frame, xlator_t *this)
return 0;
}
- if (!local->eexist_count)
+ if (!local->eexist_count) {
shard_readv_do (frame, this);
- else
+ } else {
+ local->call_count = local->eexist_count;
shard_common_lookup_shards (frame, this, local->loc.inode,
shard_post_lookup_shards_readv_handler);
+ }
return 0;
}