From d051bd14223d12ca8eaea85f6988ff41e5eef2c3 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 Change-Id: I616409c38b86c0acf1817b3472a1fed73db293f8 BUG: 1247108 Signed-off-by: Krutika Dhananjay Reviewed-on: http://review.gluster.org/11770 Tested-by: NetBSD Build System Reviewed-by: Pranith Kumar Karampuri Tested-by: Gluster Build System --- xlators/features/shard/src/shard.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'xlators/features/shard/src/shard.c') 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; } -- cgit