X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Falock.h;h=d2a1071459a646ae8290cf7e790a2c9ae51089f8;hb=ef7f5f5e32e6e0f129aee7fa1626017a7dadcb48;hp=49efcbeea0cc92f02050787311b3a7e5f87e0e00;hpb=acbb5cf689a4336af05c9f259d909d8141055bac;p=openldap diff --git a/servers/slapd/alock.h b/servers/slapd/alock.h index 49efcbeea0..d2a1071459 100644 --- a/servers/slapd/alock.h +++ b/servers/slapd/alock.h @@ -2,7 +2,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 2005-2006 The OpenLDAP Foundation. + * Copyright 2005-2011 The OpenLDAP Foundation. * Portions Copyright 2004-2005 Symas Corporation. * All rights reserved. * @@ -38,6 +38,11 @@ #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