mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
snapshot: check it's still snapshot
While polling for snapshot, detect first the snapshot still exits. It's valid to have multiple polling threads watching for the same thing and just 1 can 'win' the finish part. All others should nicely 'fail'.
This commit is contained in:
parent
a20de8af20
commit
435c82f8f6
@ -801,7 +801,8 @@ static progress_t _poll_merge_progress(struct cmd_context *cmd,
|
||||
{
|
||||
percent_t percent = PERCENT_0;
|
||||
|
||||
if (!lv_snapshot_percent(lv, &percent)) {
|
||||
if (!lv_is_merging_origin(lv) ||
|
||||
!lv_snapshot_percent(lv, &percent)) {
|
||||
log_error("%s: Failed query for merging percentage. Aborting merge.", lv->name);
|
||||
return PROGRESS_CHECK_FAILED;
|
||||
} else if (percent == PERCENT_INVALID) {
|
||||
|
Loading…
Reference in New Issue
Block a user