From 716b35e191fb587b352922c76d65843449d870cb Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 22 Jul 2014 21:52:24 -0700 Subject: [PATCH] More for writewait callback Must also reset search cursors --- servers/slapd/back-mdb/search.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/servers/slapd/back-mdb/search.c b/servers/slapd/back-mdb/search.c index e18f4394c6..46fb237c29 100644 --- a/servers/slapd/back-mdb/search.c +++ b/servers/slapd/back-mdb/search.c @@ -962,6 +962,8 @@ notfound: if ( wwctx.flag ) { wwctx.flag = 0; mdb_txn_renew( ltid ); + mdb_cursor_renew( mci ); + mdb_cursor_renew( mcd ); } mdb_entry_return( op, e ); @@ -1003,6 +1005,8 @@ notfound: if ( wwctx.flag ) { wwctx.flag = 0; mdb_txn_renew( ltid ); + mdb_cursor_renew( mci ); + mdb_cursor_renew( mcd ); } rs->sr_attrs = NULL; rs->sr_entry = NULL; -- 2.39.5