summaryrefslogtreecommitdiffstats
path: root/xlators
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-28 18:53:43 -0700
commitd051bd14223d12ca8eaea85f6988ff41e5eef2c3 (patch)
treeb04fa6a7cbd71188b9e91cccb97731ea68994e4c /xlators
parent2d85abedb2c6fb2a1c89d2074d0cc21d654cce07 (diff)
features/shard: (Re)initialize local->call_count before winding lookup
Change-Id: I616409c38b86c0acf1817b3472a1fed73db293f8 BUG: 1247108 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/11770 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators')
-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 5801651d8e3..5c11eb4105d 100644
--- a/xlators/features/shard/src/shard.c
+++ b/xlators/features/shard/src/shard.c
@@ -2511,11 +2511,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;
}