- 10 Oct, 2020 40 commits
-
-
Howard Chu authored
Always save the terminating NUL of the incoming DB name Stop using the old mdb_open/mdb_close function names .. should consider renaming mdb_stat/mdb_drop to mdb_dbi_... too.
-
Howard Chu authored
and enforce exclusive access to environment. Also fix txn_begin/pick_meta to use correct meta page, and reset the flag after successful commit.
-
-
-
Howard Chu authored
-
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.
-