- 10 Oct, 2020 38 commits
-
-
Howard Chu authored
-
used to open the previous meta page, in case the latest one is corrupted From https://github.com/LMDB/lmdb/pull/12
-
-
The old name resembled existing function mdb_env_get_flags().
-
...when we search dirty list before instead of after spill list.
-
-
-
Skip pages that are dirty only in an ancestor txn
-
Needed since 418ea8b94e14567ba2be9f9772f38f563a0d7e9c introduced option MDB_REMAP_CHUNKS.
-
Howard Chu authored
Set C_DEL flag on reinit'd subcursor
-
Howard Chu authored
Don't spill an ovpg that is referenced in a cursor
-
mt_workid = mt_txnid when WRITEMAP, so dirty pages == "spilled" pages and mdb_page_flush() does nothing.
-
In nested txns, check mp_txnid to see which txn dirtied the page. This change will also let us remove the P_DIRTY flag, and keep some flags in (dirty page).mp_txnid if we should need it.
-
...to have something substantial to test P_ADM_FLAGS with, at least until we drop the P_DIRTY flag.
-
P_ADM_FLAGS flags are tied to the page, even through page_loose-alloc. OTOH mdb_page_split() should only duplicate the relevant flags. This is just the code for the feature, P_ADM_FLAGS is 0 for now. We'll need it for P_HIDESPILL later.
-
Check with IS_MUTABLE() if an MDB_page is spilled, instead of searching spill lists. When unspilling, skip parent spill lists.
-
Do not bring in pages merely to see if they should be skipped.
-
-
-
Mismatch may indicate that pages leaked or got used twice in the same snapshot.
-
-
Accept a partial ovpage. I.e. decryption of the beginning should not depend on the data at the end. Make the key and IV less regular. (Divisor 67 has period>64.)
-
...so it would set pgno,txnid in the MDB_dovpage, not the actual ovpage
-
-
-
Howard Chu authored
Still keeping page header at top of overflow page for now
-
Howard Chu authored
Moving headers outside of overflow page.
-
Howard Chu authored
-
-
Now we don't need to tweak the code of callers to test encryption.
-
Howard Chu authored
-
Howard Chu authored
Zero out decrypted pages before freeing them. Do proper init on reused loose pages.
-
Howard Chu authored
-
Howard Chu authored
Currently encrypts all but the meta pages Still needs to store/retrieve the initialization vector
-
Hopefully we'll remember now what goes in which function.
-
Howard Chu authored
The caller already knows if it's using an overflow page, so pass the number of expected pages in instead of having to map the page first and check the count there.
-
Howard Chu authored
Behavior is controlled by MDB_REMAP_CHUNKS envflag Remapping is always enabled in MDB_VL32
-
Howard Chu authored
Separate 32/64 dependency from rpage buffer mechanism
-
- 01 Jul, 2017 2 commits
-
-
Howard Chu authored
The official macro is __ANDROID__; ANDROID may or may not be defined.
-
Howard Chu authored
Use the same size dirty list for both 64 and 32 bit.
-