From 6390fe78cc99c16760c6e16af2ab663dbb6c1c10 Mon Sep 17 00:00:00 2001 From: Ondrej Kozina Date: Wed, 16 Mar 2016 16:15:56 +0100 Subject: [PATCH] lvmpolld: do not drop info about finished ops --- daemons/lvmpolld/lvmpolld-core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemons/lvmpolld/lvmpolld-core.c b/daemons/lvmpolld/lvmpolld-core.c index 03867d8b4..f870da82f 100644 --- a/daemons/lvmpolld/lvmpolld-core.c +++ b/daemons/lvmpolld/lvmpolld-core.c @@ -577,6 +577,7 @@ static response progress_info(client_handle h, struct lvmpolld_state *ls, reques */ st = pdlv_get_status(pdlv); + /* do not be forgetful if (st.error || st.polling_finished) { INFO(ls, "%s: %s %s", PD_LOG_PREFIX, "Polling finished. Removing related data structure for LV", @@ -584,6 +585,7 @@ static response progress_info(client_handle h, struct lvmpolld_state *ls, reques pdst_locked_remove(pdst, id); pdlv_destroy(pdlv); } + */ } /* pdlv must not be dereferenced from now on */