mirror of
https://github.com/isar/libmdbx.git
synced 2025-11-07 07:18:56 +08:00
mdbx: refactoring fetch/refresh/create/open tables and DBI-handles.
The (rare, quirky) scenario of recreating a previously opened and used table/DBI-handle after it has been deleted by another process is now supported.
This commit is contained in:
@@ -47,7 +47,7 @@ int txn_shadow_cursors(const MDBX_txn *parent, const size_t dbi) {
|
||||
int err = cursor_shadow(cursor, txn, dbi);
|
||||
if (unlikely(err != MDBX_SUCCESS)) {
|
||||
/* не получилось забекапить курсоры */
|
||||
txn->dbi_state[dbi] = DBI_OLDEN | DBI_LINDO | DBI_STALE;
|
||||
txn->dbi_state[dbi] = DBI_OLDEN | DBI_LINDO;
|
||||
txn->flags |= MDBX_TXN_ERROR;
|
||||
return err;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user