From e52127533d7f07dcc7a076d8afe20c0fca291c85 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 10 Nov 2011 16:33:49 -0800 Subject: [PATCH] ITS#7087 fix mdb_online_index endless loop --- servers/slapd/back-mdb/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.39.5