From 2bb92b4837ee81b826c615b2e2280bf37fc5906f Mon Sep 17 00:00:00 2001 From: Krutika Dhananjay Date: Tue, 28 Jul 2015 11:25:55 +0530 Subject: 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 Reviewed-on: http://review.gluster.org/11783 Tested-by: Gluster Build System Tested-by: NetBSD Build System Reviewed-by: Pranith Kumar Karampuri --- xlators/features/shard/src/shard.c | 6 ++++-- 1 file 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; } -- cgit