1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

lvmpolld: do not drop info about finished ops

This commit is contained in:
Ondrej Kozina 2016-03-16 16:15:56 +01:00
parent 0d6c6553bd
commit 6390fe78cc

View File

@ -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 */