From: Howard Chu Date: Thu, 23 Feb 2012 00:01:59 +0000 (-0800) Subject: ITS#7170 fix Quick mode index generation X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c4d78a17c314a554bd1e0d29fa1bf19babb53d67;p=openldap ITS#7170 fix Quick mode index generation --- diff --git a/servers/slapd/back-mdb/idl.c b/servers/slapd/back-mdb/idl.c index 79c2a81af2..29a3796345 100644 --- a/servers/slapd/back-mdb/idl.c +++ b/servers/slapd/back-mdb/idl.c @@ -413,9 +413,6 @@ mdb_idl_insert_keys( assert( id != NOID ); - if ( slapMode & SLAP_TOOL_QUICK ) - flag |= MDB_APPEND; - #ifndef MISALIGNED_OK if (keys[0].bv_len & 0x03) kbuf[1] = 0; @@ -493,6 +490,8 @@ mdb_idl_insert_keys( } } else { /* There's room, just store it */ + if ( slapMode & SLAP_TOOL_QUICK ) + flag |= MDB_APPEND; goto put1; } } else {