diff options
author | Venkatesh Somyajulu <vsomyaju@redhat.com> | 2012-08-17 12:44:46 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-08-20 07:50:46 -0700 |
commit | defc74df52c0afdd10736f21ca7d5a2a4c2cd0e6 (patch) | |
tree | 27c74e3c3532da5321b0a74bd5eaa083d0f68e95 /xlators/cluster | |
parent | 7bf3723fba2dc7d2896fc2a6e5b5f65db0b8c179 (diff) |
Self-heald: Prevent logging of errno ENOENT
Change-Id: Ie56228dfbdc7e519a344681487164a835488a470
BUG: 835423
Signed-off-by: Venkatesh Somyajulu <vsomyaju@redhat.com>
Reviewed-on: http://review.gluster.org/3826
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/cluster')
-rw-r--r-- | xlators/cluster/afr/src/afr-self-heald.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heald.c b/xlators/cluster/afr/src/afr-self-heald.c index f87e5734422..741cf42b5dc 100644 --- a/xlators/cluster/afr/src/afr-self-heald.c +++ b/xlators/cluster/afr/src/afr-self-heald.c @@ -278,10 +278,10 @@ _remove_stale_index (xlator_t *this, xlator_t *readdir_xl, gf_log (this->name, GF_LOG_INFO, "Removing stale index " "for %s on %s", index_loc.name, readdir_xl->name); ret = syncop_unlink (readdir_xl, &index_loc); - if (ret) { - gf_log (this->name, GF_LOG_ERROR, "%s: Failed to remove" - " index on %s - %s", index_loc.name, - readdir_xl->name, strerror (errno)); + if(ret && (errno != ENOENT)) { + gf_log(this->name, GF_LOG_ERROR, "%s: Failed to remove index " + "on %s - %s",index_loc.name, readdir_xl->name, + strerror (errno)); } index_loc.path = NULL; loc_wipe (&index_loc); |