From: Howard Chu Date: Fri, 11 Nov 2011 00:33:49 +0000 (-0800) Subject: ITS#7087 fix mdb_online_index endless loop X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e52127533d7f07dcc7a076d8afe20c0fca291c85;p=openldap ITS#7087 fix mdb_online_index endless loop --- diff --git a/servers/slapd/back-mdb/config.c b/servers/slapd/back-mdb/config.c index 831aec0051..ec319ce70a 100644 --- a/servers/slapd/back-mdb/config.c +++ b/servers/slapd/back-mdb/config.c @@ -134,7 +134,6 @@ mdb_online_index( void *ctx, void *arg ) op->o_bd = be; id = 1; - key.mv_data = &id; key.mv_size = sizeof(ID); while ( 1 ) { @@ -151,6 +150,7 @@ mdb_online_index( void *ctx, void *arg ) } if ( getnext ) { getnext = 0; + key.mv_data = &id; rc = mdb_cursor_get( curs, &key, &data, MDB_SET_RANGE ); if ( rc ) { mdb_txn_abort( txn );