mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvmlockd: after restart use existing dlm global lockspace
If lvmlockd is killed and restarted, let it adopt the existing global lockspace.
This commit is contained in:
parent
f1d88007b0
commit
54a8562804
@ -2521,6 +2521,11 @@ static void *lockspace_thread_main(void *arg_in)
|
||||
}
|
||||
pthread_mutex_unlock(&ls->mutex);
|
||||
|
||||
if (ls->lm_type == LD_LM_DLM && !strcmp(gl_lsname_dlm, ls->name)) {
|
||||
log_debug("dlm global lockspace adopt_ok");
|
||||
adopt_ok = 1;
|
||||
}
|
||||
|
||||
log_debug("S %s lm_add_lockspace %s wait %d adopt_only %d adopt_ok %d",
|
||||
ls->name, lm_str(ls->lm_type), wait_flag, adopt_only, adopt_ok);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user