From: Howard Chu Date: Wed, 18 Nov 2009 21:08:48 +0000 (+0000) Subject: Don't allow any other jobs if a -q job is active X-Git-Tag: ACLCHECK_0~103 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=42e56b95d53788fe4f3fd17c8471d348f7ad8703;p=openldap Don't allow any other jobs if a -q job is active --- diff --git a/servers/slapd/alock.c b/servers/slapd/alock.c index 9c4fd72f5c..090ac1e097 100644 --- a/servers/slapd/alock.c +++ b/servers/slapd/alock.c @@ -409,7 +409,8 @@ alock_open ( alock_info_t * info, ++live_count; } else if (res == ALOCK_UNIQUE - && locktype == ALOCK_UNIQUE) { + && (( locktype & ALOCK_SMASK ) == ALOCK_UNIQUE + || nosave )) { close (info->al_fd); ber_memfree (slot_data.al_appname); return ALOCK_BUSY;