summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/dht
diff options
context:
space:
mode:
authorSusant Palai <spalai@redhat.com>2017-07-25 11:43:37 +0530
committerJeff Darcy <jeff@pl.atyp.us>2017-07-26 21:50:22 +0000
commit302aaeeddc64cd31997a4965b81ba772cd1b36c6 (patch)
tree986b8f71cd565c2db6bdafdd3b20581d43781fd6 /xlators/cluster/dht
parent40d71d6a201d618e52555a062ac1a429d36ca9ca (diff)
cluster/dht: change log level to debug for thread activity
Every time all the thread sleeps or wakes up, we log a message about that event. Sometime this can be noisy where the number of files eligible to be migrated are placed far away from each other. Moving the logs to DEBUG. Change-Id: I4dc2cc9fdf4f42d4001754532a5bc4aeb3f0f959 BUG: 1474639 Signed-off-by: Susant Palai <spalai@redhat.com> Reviewed-on: https://review.gluster.org/17866 Smoke: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Amar Tumballi <amarts@redhat.com> Reviewed-by: N Balachandran <nbalacha@redhat.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'xlators/cluster/dht')
-rw-r--r--xlators/cluster/dht/src/dht-rebalance.c24
1 files changed, 11 insertions, 13 deletions
diff --git a/xlators/cluster/dht/src/dht-rebalance.c b/xlators/cluster/dht/src/dht-rebalance.c
index 4b4c87b6a8a..ffc7fdff3f5 100644
--- a/xlators/cluster/dht/src/dht-rebalance.c
+++ b/xlators/cluster/dht/src/dht-rebalance.c
@@ -2792,20 +2792,18 @@ gf_defrag_task (void *opaque)
(defrag->recon_thread_count <
defrag->current_thread_count)) {
defrag->current_thread_count--;
- gf_log ("DHT", GF_LOG_INFO,
- "Thread sleeping. "
- "current thread count: %d",
- defrag->current_thread_count);
+ gf_msg_debug ("DHT", 0, "Thread sleeping. "
+ "current thread count: %d",
+ defrag->current_thread_count);
pthread_cond_wait (
&defrag->df_wakeup_thread,
&defrag->dfq_mutex);
defrag->current_thread_count++;
- gf_log ("DHT", GF_LOG_INFO,
- "Thread wokeup. "
- "current thread count: %d",
- defrag->current_thread_count);
+ gf_msg_debug ("DHT", 0, "Thread wokeup. "
+ "current thread count: %d",
+ defrag->current_thread_count);
}
@@ -2861,11 +2859,11 @@ gf_defrag_task (void *opaque)
if (!defrag->crawl_done) {
defrag->current_thread_count--;
- gf_log ("DHT", GF_LOG_INFO, "Thread "
- " sleeping while waiting for "
- "migration entries. current "
- "thread count :%d",
- defrag->current_thread_count);
+ gf_msg_debug ("DHT", 0, "Thread "
+ "sleeping while waiting "
+ "for migration entries. "
+ "current thread count:%d",
+ defrag->current_thread_count);
pthread_cond_wait (
&defrag->parallel_migration_cond,