summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Kozina <okozina@redhat.com>2015-03-09 18:27:37 +0100
committerOndrej Kozina <okozina@redhat.com>2015-04-01 11:01:22 +0200
commit2e4b1f280d1af49897049c6a60b9e32aaeedde20 (patch)
treeee7a4b59b844f2f27d53b246de5c3917779820a6
parent481a8ca354809d1e8a96cf09886cc35dc702e954 (diff)
downloadlvm2-2e4b1f280d1af49897049c6a60b9e32aaeedde20.tar.gz
lvmpolld: add debug info about being idle
-rw-r--r--daemons/lvmpolld/lvmpolld-core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/daemons/lvmpolld/lvmpolld-core.c b/daemons/lvmpolld/lvmpolld-core.c
index 855a3f70b..973480028 100644
--- a/daemons/lvmpolld/lvmpolld-core.c
+++ b/daemons/lvmpolld/lvmpolld-core.c
@@ -164,10 +164,12 @@ static void update_active_state(lvmpolld_state_t *ls)
!ls->id_to_pdlv_abort.active_polling_count;
lvmpolld_stores_unlock(ls);
+
+ DEBUGLOG(ls, "%s: %s %s%s", PD_LOG_PREFIX, "daemon is", ls->idle->is_idle ? "" : "not ", "idle");
}
/* make this configurable */
-#define MAX_TIMEOUT 0
+#define MAX_TIMEOUT 2
static int poll_for_output(lvmpolld_lv_t *pdlv, int outfd, int errfd)
{