ITS#8291 Reopen cursor after delete

This commit is contained in:
Ondřej Kuzník 2015-12-16 13:47:17 +01:00 committed by Quanah Gibson-Mount
parent 5e531214b5
commit 3258bf40eb

View File

@ -1158,9 +1158,12 @@ done:
} }
} }
if ( cursor == NULL )
{
rc = bdb->bi_id2entry->bdi_db->cursor( rc = bdb->bi_id2entry->bdi_db->cursor(
bdb->bi_id2entry->bdi_db, bdb->bi_cache.c_txn, &cursor, bdb->bi_id2entry->bdi_db, bdb->bi_cache.c_txn, &cursor,
bdb->bi_db_opflags ); bdb->bi_db_opflags );
}
return rc; return rc;
} }