From df8e2f53b70f4f49af70df308010dddfe5ca35ec Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Wed, 11 Apr 2012 16:07:43 +0530 Subject: dht/rebalance: Correct log messages Change-Id: Ica73707922c1bf1a0975a8057d39c1441b987b0a BUG: 808376 Signed-off-by: shishir gowda Reviewed-on: http://review.gluster.com/3127 Reviewed-by: Amar Tumballi Tested-by: Gluster Build System Reviewed-by: Anand Avati --- xlators/cluster/dht/src/dht-rebalance.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/xlators/cluster/dht/src/dht-rebalance.c b/xlators/cluster/dht/src/dht-rebalance.c index 5c9300049fe..611ea590102 100644 --- a/xlators/cluster/dht/src/dht-rebalance.c +++ b/xlators/cluster/dht/src/dht-rebalance.c @@ -1190,16 +1190,17 @@ gf_defrag_migrate_data (xlator_t *this, gf_defrag_info_t *defrag, loc_t *loc, ret = syncop_getxattr (this, &entry_loc, &dict, GF_XATTR_LINKINFO_KEY); if (ret < 0) { - gf_log (this->name, GF_LOG_TRACE, "getxattr " - "failed for %s", entry_loc.path); + gf_log (this->name, GF_LOG_TRACE, "failed to " + "get link-to key for %s", + entry_loc.path); continue; } ret = syncop_setxattr (this, &entry_loc, migrate_data, 0); if (ret) - gf_log (this->name, GF_LOG_ERROR, "setxattr " - "failed for %s", entry_loc.path); + gf_log (this->name, GF_LOG_ERROR, "migrate-data" + " failed for %s", entry_loc.path); if (ret == -1) { op_errno = errno; @@ -1208,7 +1209,7 @@ gf_defrag_migrate_data (xlator_t *this, gf_defrag_info_t *defrag, loc_t *loc, if (!ret) gf_log (this->name, GF_LOG_DEBUG, - "setxattr on %s failed: %s", + "migrate-data on %s failed: %s", entry_loc.path, strerror (op_errno)); else if (ret == 1) -- cgit