mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvmlockd: fix the NO_GL_LS condition
indicating when no global lockspace exists.
This commit is contained in:
parent
45e749493c
commit
6762eec88c
@ -3594,10 +3594,15 @@ static int client_send_result(struct client *cl, struct action *act)
|
||||
strcat(result_flags, "NO_LOCKSPACES,");
|
||||
pthread_mutex_unlock(&lockspaces_mutex);
|
||||
|
||||
if (gl_use_sanlock && !gl_lsname_sanlock[0])
|
||||
strcat(result_flags, "NO_GL_LS,");
|
||||
else
|
||||
if (gl_use_sanlock) {
|
||||
if (!gl_lsname_sanlock[0])
|
||||
strcat(result_flags, "NO_GL_LS,");
|
||||
} else if (gl_use_dlm) {
|
||||
if (!gl_lsname_dlm[0])
|
||||
strcat(result_flags, "NO_GL_LS,");
|
||||
} else {
|
||||
strcat(result_flags, "NO_GL_LS,");
|
||||
}
|
||||
}
|
||||
|
||||
if (act->flags & LD_AF_DUP_GL_LS)
|
||||
|
Loading…
Reference in New Issue
Block a user