diff options
author | Anuradha Talur <atalur@redhat.com> | 2015-11-23 15:56:28 +0530 |
---|---|---|
committer | Pranith Kumar Karampuri <pkarampu@redhat.com> | 2015-12-21 01:19:05 -0800 |
commit | fbcd691b593cba29ba9c54d3da2c685787f719be (patch) | |
tree | 8c6fb950f79f261e7c61e849045ddd8e85062af9 /xlators/features | |
parent | cf1667cf2fdc9306ae23db1c171b6bdb225153d7 (diff) |
heal : Changed heal info to process all indices directories
Backport of http://review.gluster.org/#/c/12658/
Change-Id: Ida863844e14309b6526c1b8434273fbf05c410d2
BUG: 1287531
Signed-off-by: Anuradha Talur <atalur@redhat.com>
Reviewed-on: http://review.gluster.org/12854
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'xlators/features')
-rw-r--r-- | xlators/features/index/src/index.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/xlators/features/index/src/index.c b/xlators/features/index/src/index.c index 98c7254f9fd..8cdb5feb870 100644 --- a/xlators/features/index/src/index.c +++ b/xlators/features/index/src/index.c @@ -1336,7 +1336,7 @@ index_fetch_link_count (xlator_t *this, index_xattrop_type_t type) } else if (!strcmp (entry->d_name, ".") || !strcmp (entry->d_name, "..")) { continue; - } else if (!strncmp (entry->d_name, subdir, strlen (subdir))) { + } else { make_file_path (priv->index_basepath, subdir, entry->d_name, index_path, sizeof (index_path)); @@ -1351,9 +1351,6 @@ index_fetch_link_count (xlator_t *this, index_xattrop_type_t type) else break; } - } else { - count = 1; - goto out; } } out: |