From: Mark Adamson Date: Fri, 18 Aug 2000 16:58:46 +0000 (+0000) Subject: Fix the logic for checking if backend DB has all necessary functions. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2227 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c7abc6310dd4738acd1e8a1638ffdbaa08052995;p=openldap Fix the logic for checking if backend DB has all necessary functions. --- diff --git a/servers/slapd/tools/slapindex.c b/servers/slapd/tools/slapindex.c index 867e244cbd..86aff99b4c 100644 --- a/servers/slapd/tools/slapindex.c +++ b/servers/slapd/tools/slapindex.c @@ -24,10 +24,10 @@ main( int argc, char **argv ) slap_tool_init( "slapindex", SLAPINDEX, argc, argv ); - if( !be->be_entry_open && - !be->be_entry_close && - !be->be_entry_first && - !be->be_entry_next && + if( !be->be_entry_open || + !be->be_entry_close || + !be->be_entry_first || + !be->be_entry_next || !be->be_entry_reindex ) { fprintf( stderr, "%s: database doesn't support necessary operations.\n",