From ed33fa5cc65c1c4f8d35d91dc1c501b287f5773e Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 6 Dec 2008 17:20:43 +0000 Subject: [PATCH] add shadow mask --- servers/slapd/slap.h | 1 + servers/slapd/syncrepl.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/servers/slapd/slap.h b/servers/slapd/slap.h index 4faacb0076..dadd88d5c9 100644 --- a/servers/slapd/slap.h +++ b/servers/slapd/slap.h @@ -1798,6 +1798,7 @@ struct BackendDB { #define SLAP_DBFLAG_SINGLE_SHADOW 0x4000U /* a single-master shadow */ #define SLAP_DBFLAG_SYNC_SHADOW 0x1000U /* a sync shadow */ #define SLAP_DBFLAG_SLURP_SHADOW 0x2000U /* a slurp shadow */ +#define SLAP_DBFLAG_SHADOW_MASK (SLAP_DBFLAG_SHADOW|SLAP_DBFLAG_SINGLE_SHADOW|SLAP_DBFLAG_SYNC_SHADOW|SLAP_DBFLAG_SLURP_SHADOW) #define SLAP_DBFLAG_CLEAN 0x10000U /* was cleanly shutdown */ #define SLAP_DBFLAG_ACL_ADD 0x20000U /* check attr ACLs on adds */ slap_mask_t be_flags; diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index e0b7fb810b..3c15b5b54f 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -4539,7 +4539,7 @@ syncrepl_config( ConfigArgs *c ) } } if ( !c->be->be_syncinfo ) { - SLAP_DBFLAGS( c->be ) &= ~(SLAP_DBFLAG_SHADOW|SLAP_DBFLAG_SYNC_SHADOW); + SLAP_DBFLAGS( c->be ) &= ~SLAP_DBFLAG_SHADOW_MASK; if ( cs ) { ber_bvarray_free( cs->cs_vals ); ldap_pvt_thread_mutex_destroy( &cs->cs_mutex ); -- 2.39.5