From 42e56b95d53788fe4f3fd17c8471d348f7ad8703 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 18 Nov 2009 21:08:48 +0000 Subject: [PATCH] Don't allow any other jobs if a -q job is active --- servers/slapd/alock.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5