mirror of
https://github.com/isar/libmdbx.git
synced 2025-05-12 16:27:46 +08:00
mdbx: исправление форматирования (косметика).
This commit is contained in:
parent
a71cefc288
commit
b5503b5670
@ -561,9 +561,9 @@ int txn_nested_join(MDBX_txn *txn, struct commit_timestamp *ts) {
|
|||||||
eASSERT(env, parent->n_dbi == txn->n_dbi);
|
eASSERT(env, parent->n_dbi == txn->n_dbi);
|
||||||
TXN_FOREACH_DBI_ALL(txn, dbi) {
|
TXN_FOREACH_DBI_ALL(txn, dbi) {
|
||||||
if (txn->dbi_state[dbi] != (parent->dbi_state[dbi] & ~(DBI_FRESH | DBI_CREAT | DBI_DIRTY))) {
|
if (txn->dbi_state[dbi] != (parent->dbi_state[dbi] & ~(DBI_FRESH | DBI_CREAT | DBI_DIRTY))) {
|
||||||
eASSERT(env, (txn->dbi_state[dbi] & (DBI_CREAT | DBI_FRESH | DBI_DIRTY)) != 0 ||
|
eASSERT(env,
|
||||||
(txn->dbi_state[dbi] | DBI_STALE) ==
|
(txn->dbi_state[dbi] & (DBI_CREAT | DBI_FRESH | DBI_DIRTY)) != 0 ||
|
||||||
(parent->dbi_state[dbi] & ~(DBI_FRESH | DBI_CREAT | DBI_DIRTY)));
|
(txn->dbi_state[dbi] | DBI_STALE) == (parent->dbi_state[dbi] & ~(DBI_FRESH | DBI_CREAT | DBI_DIRTY)));
|
||||||
parent->dbs[dbi] = txn->dbs[dbi];
|
parent->dbs[dbi] = txn->dbs[dbi];
|
||||||
/* preserve parent's status */
|
/* preserve parent's status */
|
||||||
const uint8_t state = txn->dbi_state[dbi] | (parent->dbi_state[dbi] & (DBI_CREAT | DBI_FRESH | DBI_DIRTY));
|
const uint8_t state = txn->dbi_state[dbi] | (parent->dbi_state[dbi] & (DBI_CREAT | DBI_FRESH | DBI_DIRTY));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user