summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}