]> git.sur5r.net Git - openldap/commitdiff
Don't allow any other jobs if a -q job is active
authorHoward Chu <hyc@openldap.org>
Wed, 18 Nov 2009 21:08:48 +0000 (21:08 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 18 Nov 2009 21:08:48 +0000 (21:08 +0000)
servers/slapd/alock.c

index 9c4fd72f5c79e64dbaf5acfa8092f3583e17b5f3..090ac1e0975d202583ad8e1c0162075f73563d30 100644 (file)
@@ -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;