mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
thin: ignore parallel merge while polling
If the thin volume has no merging snapshot, (being already merged) there is nothing to check.
This commit is contained in:
parent
8cbe4a171e
commit
a60c8748ea
@ -179,7 +179,10 @@ progress_t poll_thin_merge_progress(struct cmd_context *cmd,
|
|||||||
{
|
{
|
||||||
uint32_t device_id = 0;
|
uint32_t device_id = 0;
|
||||||
|
|
||||||
if (!lv_thin_device_id(lv, &device_id) || !lv->snapshot) {
|
if (!lv->snapshot)
|
||||||
|
return PROGRESS_FINISHED_ALL; /* Already merged by someone else */
|
||||||
|
|
||||||
|
if (!lv_thin_device_id(lv, &device_id)) {
|
||||||
stack;
|
stack;
|
||||||
return PROGRESS_CHECK_FAILED;
|
return PROGRESS_CHECK_FAILED;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user