mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-06 22:44:14 +08:00
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:
parent
5bb254e629
commit
4425fb0b83
@ -8092,7 +8092,7 @@ __hot static int mdbx_page_flush(MDBX_txn *txn, const size_t keep) {
|
|||||||
|
|
||||||
/* Don't flush this page yet */
|
/* Don't flush this page yet */
|
||||||
if (dp->mp_flags & P_KEEP) {
|
if (dp->mp_flags & P_KEEP) {
|
||||||
dp->mp_flags &= ~P_KEEP;
|
dp->mp_flags -= P_KEEP;
|
||||||
dl->items[++w] = dl->items[r];
|
dl->items[++w] = dl->items[r];
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -8106,7 +8106,7 @@ __hot static int mdbx_page_flush(MDBX_txn *txn, const size_t keep) {
|
|||||||
flush_end =
|
flush_end =
|
||||||
(flush_end > dp->mp_pgno + npages) ? flush_end : dp->mp_pgno + npages;
|
(flush_end > dp->mp_pgno + npages) ? flush_end : dp->mp_pgno + npages;
|
||||||
*env->me_unsynced_pages += npages;
|
*env->me_unsynced_pages += npages;
|
||||||
dp->mp_flags &= ~P_DIRTY;
|
dp->mp_flags -= P_DIRTY;
|
||||||
dp->mp_txnid = pp_txnid2chk(txn);
|
dp->mp_txnid = pp_txnid2chk(txn);
|
||||||
|
|
||||||
if ((env->me_flags & MDBX_WRITEMAP) == 0) {
|
if ((env->me_flags & MDBX_WRITEMAP) == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user