diff options
| author | Krutika Dhananjay <kdhananj@redhat.com> | 2018-02-26 15:22:58 +0530 | 
|---|---|---|
| committer | Krutika Dhananjay <kdhananj@redhat.com> | 2018-02-27 01:53:16 +0000 | 
| commit | 15afb4cf9f792686e09c0b1ef864c0c02a26ac0d (patch) | |
| tree | 96c9dad2c80b146bb0cda3b1361b6f20fe380571 | |
| parent | 4a8255f772c8e98ccf6cae731d4d665363c3ed81 (diff) | |
features/shard: Pass the correct block-num to store in inode ctx
Change-Id: Icf3a5d0598a081adb7d234a60bd15250a5ce1532
BUG: 1468483
Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com>
| -rw-r--r-- | xlators/features/shard/src/shard.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/shard/src/shard.c b/xlators/features/shard/src/shard.c index d076071158a..930624b3cc8 100644 --- a/xlators/features/shard/src/shard.c +++ b/xlators/features/shard/src/shard.c @@ -641,7 +641,6 @@ shard_common_resolve_shards (call_frame_t *frame, xlator_t *this,                          gf_msg_debug (this->name, 0, "Shard %d already "                                  "present. gfid=%s. Saving inode for future.",                                  shard_idx_iter, uuid_utoa(inode->gfid)); -                        shard_idx_iter++;                          local->inode_list[i] = inode;                          /* Let the ref on the inodes that are already present                           * in inode table still be held so that they don't get @@ -655,6 +654,7 @@ shard_common_resolve_shards (call_frame_t *frame, xlator_t *this,                                                                  shard_idx_iter);                          }                          UNLOCK(&priv->lock); +                        shard_idx_iter++;                           continue;                  } else {  | 
