mdbx: minor refine flags-reset inside mdbx_page_flush().

This produces little bit less code for most architectures.

Change-Id: I0440ec7b465ae2f12a8b09b0226f2c42bc52f7de
This commit is contained in:
Leonid Yuriev 2021-01-05 12:24:28 +03:00
parent 5bb254e629
commit 4425fb0b83

View File

@ -8092,7 +8092,7 @@ __hot static int mdbx_page_flush(MDBX_txn *txn, const size_t keep) {
/* Don't flush this page yet */
if (dp->mp_flags & P_KEEP) {
dp->mp_flags &= ~P_KEEP;
dp->mp_flags -= P_KEEP;
dl->items[++w] = dl->items[r];
continue;
}
@ -8106,7 +8106,7 @@ __hot static int mdbx_page_flush(MDBX_txn *txn, const size_t keep) {
flush_end =
(flush_end > dp->mp_pgno + npages) ? flush_end : dp->mp_pgno + npages;
*env->me_unsynced_pages += npages;
dp->mp_flags &= ~P_DIRTY;
dp->mp_flags -= P_DIRTY;
dp->mp_txnid = pp_txnid2chk(txn);
if ((env->me_flags & MDBX_WRITEMAP) == 0) {