1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 20:25:52 +03:00

lvmlockd: fix the NO_GL_LS condition

indicating when no global lockspace exists.
This commit is contained in:
David Teigland 2015-11-09 11:33:16 -06:00
parent 45e749493c
commit 6762eec88c

View File

@ -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)