From: Howard Chu Date: Wed, 23 Jul 2014 04:52:24 +0000 (-0700) Subject: More for writewait callback X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=716b35e191fb587b352922c76d65843449d870cb;p=openldap More for writewait callback Must also reset search cursors --- 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;