mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 16:49:39 -05:00
ITS#8291 Reopen cursor after delete
This commit is contained in:
parent
5e531214b5
commit
3258bf40eb
1 changed files with 6 additions and 3 deletions
|
|
@ -1158,9 +1158,12 @@ done:
|
|||
}
|
||||
}
|
||||
|
||||
rc = bdb->bi_id2entry->bdi_db->cursor(
|
||||
bdb->bi_id2entry->bdi_db, bdb->bi_cache.c_txn, &cursor,
|
||||
bdb->bi_db_opflags );
|
||||
if ( cursor == NULL )
|
||||
{
|
||||
rc = bdb->bi_id2entry->bdi_db->cursor(
|
||||
bdb->bi_id2entry->bdi_db, bdb->bi_cache.c_txn, &cursor,
|
||||
bdb->bi_db_opflags );
|
||||
}
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue