mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
lvmpolld: do not drop info about finished ops
This commit is contained in:
parent
0d6c6553bd
commit
6390fe78cc
@ -577,6 +577,7 @@ static response progress_info(client_handle h, struct lvmpolld_state *ls, reques
|
|||||||
*/
|
*/
|
||||||
st = pdlv_get_status(pdlv);
|
st = pdlv_get_status(pdlv);
|
||||||
|
|
||||||
|
/* do not be forgetful
|
||||||
if (st.error || st.polling_finished) {
|
if (st.error || st.polling_finished) {
|
||||||
INFO(ls, "%s: %s %s", PD_LOG_PREFIX,
|
INFO(ls, "%s: %s %s", PD_LOG_PREFIX,
|
||||||
"Polling finished. Removing related data structure for LV",
|
"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);
|
pdst_locked_remove(pdst, id);
|
||||||
pdlv_destroy(pdlv);
|
pdlv_destroy(pdlv);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
/* pdlv must not be dereferenced from now on */
|
/* pdlv must not be dereferenced from now on */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user