]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/alock.h
ITS#7676,7677 don't leak libldap err codes
[openldap] / servers / slapd / alock.h
index 2f3039bb8d29f6d4c01cf5426d0b1f59ff8f7d5e..963cb47b706fe41bbfa1a0a2e99befb99e0e9f01 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2005 The OpenLDAP Foundation.
+ * Copyright 2005-2014 The OpenLDAP Foundation.
  * Portions Copyright 2004-2005 Symas Corporation.
  * All rights reserved.
  *
@@ -15,7 +15,7 @@
  * <http://www.OpenLDAP.org/license.html>.
  */
 /* ACKNOWLEDGEMENTS:
- * This work was initially developed by Matthew Backes at Symas
+ * This work was initially developed by Emily Backes at Symas
  * Corporation for inclusion in OpenLDAP Software.
  */
 
 #define ALOCK_UNIQUE   (2)
 #define ALOCK_DIRTY            (3)
 
+#define ALOCK_SMASK            3
+
+/* lock/state where recovery is not available */
+#define        ALOCK_NOSAVE    4
+
 /* constants */
 #define ALOCK_SLOT_SIZE                (1024)
 #define ALOCK_SLOT_IATTRS      (4)
@@ -61,7 +66,7 @@ typedef struct alock_slot {
 LDAP_SLAPD_F (int) alock_open LDAP_P(( alock_info_t * info, const char * appname,
        const char * envdir, int locktype ));
 LDAP_SLAPD_F (int) alock_scan LDAP_P(( alock_info_t * info ));
-LDAP_SLAPD_F (int) alock_close LDAP_P(( alock_info_t * info ));
+LDAP_SLAPD_F (int) alock_close LDAP_P(( alock_info_t * info, int nosave ));
 LDAP_SLAPD_F (int) alock_recover LDAP_P(( alock_info_t * info ));
 
 LDAP_END_DECL