]> git.sur5r.net Git - openldap/commitdiff
More for writewait callback
authorHoward Chu <hyc@openldap.org>
Wed, 23 Jul 2014 04:52:24 +0000 (21:52 -0700)
committerHoward Chu <hyc@openldap.org>
Wed, 23 Jul 2014 04:52:24 +0000 (21:52 -0700)
Must also reset search cursors

servers/slapd/back-mdb/search.c

index e18f4394c6f4d97c1e854dfddf91a1cc8e50e5f0..46fb237c297c945eb85b792dd197ed1b3bd24eec 100644 (file)
@@ -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;