summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSusant Palai <spalai@redhat.com>2017-07-25 11:43:37 +0530
committerShyamsundar Ranganathan <srangana@redhat.com>2017-07-31 16:30:36 +0000
commit332d553cb8eba208fe421723b64f8c19b43fd696 (patch)
tree734d654528406dd11b26d88cf66394b4f402052b
parent46f52dc131f86c8b3d61c8d9ac2916bd1d979068 (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> > Signed-off-by: Susant Palai <spalai@redhat.com> Change-Id: I4dc2cc9fdf4f42d4001754532a5bc4aeb3f0f959 BUG: 1475662 Signed-off-by: Susant Palai <spalai@redhat.com> Reviewed-on: https://review.gluster.org/17893 Smoke: Gluster Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: N Balachandran <nbalacha@redhat.com>
-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 6a9153f794d..266dc5a99a9 100644
--- a/xlators/cluster/dht/src/dht-rebalance.c
+++ b/xlators/cluster/dht/src/dht-rebalance.c
@@ -2785,20 +2785,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);
}
@@ -2854,11 +2852,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,