summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorSusant Palai <spalai@redhat.com>2016-09-07 09:21:12 +0530
committerNiels de Vos <ndevos@redhat.com>2016-09-07 07:57:17 -0700
commit2fdfe1a6dcde741af1215b738689b2fcf822f235 (patch)
treee2e84baeefab40d9da186b21aa4c983b3c9d0eec /xlators
parent097b4b0ed1267015df82c89dcd1aaffeef02dba5 (diff)
cluster/dht: move layout logs to DEBUG level
> Reviewed-on: http://review.gluster.org/15343 > NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> > CentOS-regression: Gluster Build System <jenkins@build.gluster.org> > Reviewed-by: N Balachandran <nbalacha@redhat.com> > Smoke: Gluster Build System <jenkins@build.gluster.org> > Reviewed-by: Shyamsundar Ranganathan <srangana@redhat.com> > Signed-off-by: Susant Palai <spalai@redhat.com> (cherry picked from commit 15c790b502ba92caa17f2d1870c3d75d547e6bad) Change-Id: Iad96256218be643b272762b5638a3f6837aff28d BUG: 1366496 Signed-off-by: Susant Palai <spalai@redhat.com> Reviewed-on: http://review.gluster.org/15413 Reviewed-by: N Balachandran <nbalacha@redhat.com> Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/cluster/dht/src/dht-common.c2
-rw-r--r--xlators/cluster/dht/src/dht-selfheal.c11
2 files changed, 8 insertions, 5 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c
index c667266fed8..5fd0a168bde 100644
--- a/xlators/cluster/dht/src/dht-common.c
+++ b/xlators/cluster/dht/src/dht-common.c
@@ -8883,7 +8883,7 @@ dht_log_new_layout_for_dir_selfheal (xlator_t *this, loc_t *loc,
}
- gf_msg (this->name, GF_LOG_INFO, 0, DHT_MSG_LOG_FIXED_LAYOUT,
+ gf_msg (this->name, GF_LOG_DEBUG, 0, DHT_MSG_LOG_FIXED_LAYOUT,
"%s", output_string);
err:
diff --git a/xlators/cluster/dht/src/dht-selfheal.c b/xlators/cluster/dht/src/dht-selfheal.c
index a208fdb3e1b..520a3f3e88c 100644
--- a/xlators/cluster/dht/src/dht-selfheal.c
+++ b/xlators/cluster/dht/src/dht-selfheal.c
@@ -810,7 +810,8 @@ dht_fix_dir_xattr (call_frame_t *frame, loc_t *loc, dht_layout_t *layout)
local->call_cnt = count = conf->subvolume_cnt;
- dht_log_new_layout_for_dir_selfheal (this, loc, layout);
+ if (gf_log_get_loglevel () >= GF_LOG_DEBUG)
+ dht_log_new_layout_for_dir_selfheal (this, loc, layout);
for (i = 0; i < layout->cnt; i++) {
dht_selfheal_dir_xattr_persubvol (frame, loc, layout, i, NULL);
@@ -884,7 +885,8 @@ dht_selfheal_dir_xattr (call_frame_t *frame, loc_t *loc, dht_layout_t *layout)
local->call_cnt = missing_xattr;
- dht_log_new_layout_for_dir_selfheal (this, loc, layout);
+ if (gf_log_get_loglevel () >= GF_LOG_DEBUG)
+ dht_log_new_layout_for_dir_selfheal (this, loc, layout);
for (i = 0; i < layout->cnt; i++) {
if (layout->list[i].err != -1 || !layout->list[i].stop)
@@ -1011,7 +1013,8 @@ dht_selfheal_dir_xattr_for_nameless_lookup (call_frame_t *frame, loc_t *loc,
local->call_cnt = missing_xattr;
- dht_log_new_layout_for_dir_selfheal (this, loc, layout);
+ if (gf_log_get_loglevel () >= GF_LOG_DEBUG)
+ dht_log_new_layout_for_dir_selfheal (this, loc, layout);
for (i = 0; i < layout->cnt; i++) {
if (layout->list[i].err != -1 || !layout->list[i].stop)
@@ -1744,7 +1747,7 @@ dht_fix_layout_of_directory (call_frame_t *frame, loc_t *loc,
if (priv->du_stats) {
for (i = 0; i < priv->subvolume_cnt; ++i) {
- gf_msg (this->name, GF_LOG_INFO, 0,
+ gf_msg (this->name, GF_LOG_DEBUG, 0,
DHT_MSG_SUBVOL_INFO,
"subvolume %d (%s): %u chunks", i,
priv->subvolumes[i]->name,