mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cov: do not drop already known error state
Do not try to 'discover' another error state, when ENOMEM is already detected.
This commit is contained in:
parent
e7b5f490c5
commit
65ba4964df
@ -3016,9 +3016,7 @@ static int add_lockspace_thread(const char *ls_name,
|
||||
!alloc_and_copy_pvs_path(&ls2->pvs, &ls->pvs)) {
|
||||
log_debug("add_lockspace_thread %s fails to allocate pvs", ls->name);
|
||||
rv = -ENOMEM;
|
||||
}
|
||||
|
||||
if (ls2->thread_stop) {
|
||||
} else if (ls2->thread_stop) {
|
||||
log_debug("add_lockspace_thread %s exists and stopping", ls->name);
|
||||
rv = -EAGAIN;
|
||||
} else if (!ls2->create_fail && !ls2->create_done) {
|
||||
|
Loading…
Reference in New Issue
Block a user