- May 04, 2013
-
-
Hallvard Furuseth authored
Close remaining cursors when committing a write txn. The doc says this happens, and it avoids cursor tracking when updating mainDB + freeDB. Rename mdb_cursor_merge() -> mdb_cursors_close() for code reuse, and add a merge option. Simplify its loop a bit. Factor out cleanup of DBIs.
-
Hallvard Furuseth authored
On mdb_env_copy() error: Abort the txn. On mdb_txn_renew0() error: Release new MDB_NOTLS reader slot.
-
Hallvard Furuseth authored
Redo 8a562f56 so !mt_dbxs indicates "txn was reset", so mt_numdbs gets one magic value instead of two.
-
Hallvard Furuseth authored
Reset me_dbflags[dbi] when closing DBI, to get rid of MDB_VALID flag. mdb_env_close(): Re-fix DB-name memleak. DBIs > me_numdbs may exist.
-
- May 02, 2013
-
-
Howard Chu authored
The circular dependency issues appear to have been resolved. Still, need to watch closely, maybe revert this change if problems arise.
-
- May 01, 2013
-
-
Howard Chu authored
Due to underfilled branch page. We're in the process of merging/moving nodes to it because we already know it's underfilled. Took this approach rather than just removing the assert in mdb_page_search_root, because that assert may yet catch other situations we don't know about. (Although, it has been there since the original commit of mdb.c and has never triggered any other times...)
-
Hallvard Furuseth authored
-
- Apr 21, 2013
-
-
Howard Chu authored
-
- Apr 20, 2013
-
-
Howard Chu authored
-
- Apr 18, 2013
-
-
Hallvard Furuseth authored
Show MDB_PERSISTENT/MDB_VALID/DB_VALID relationship. mdb_txn_renew0(): Remove obsolete "cannot fail" comment.
-
-
Hallvard Furuseth authored
-
Hallvard Furuseth authored
-
Hallvard Furuseth authored
Move key init into mdb_env_setup_locks(). Don't create unused TLS key when read-only filesystem. Drop internal flag MDB_ROFS, we can instead test either !me_txns, !mt_u.reader or me_lfd==INVALID_HANDLE_VALUE.
-
Hallvard Furuseth authored
Malloc before I/O. Avoids possible malloc error after I/O. Don't allocate dirty & free lists when MDB_RDONLY. Factor out code.
-
- Apr 17, 2013
-
-
Howard Chu authored
Don't do anything with (fake root) subpages
-
- Apr 16, 2013
-
-
Howard Chu authored
Fix 227329c8, don't persist the MDB_VALID bit in db.md_flags.
-
- Apr 15, 2013
-
-
Howard Chu authored
-
Howard Chu authored
Need to check NUMKEYS as well as fill threshold, when deciding whether to change anything. Don't let the page drop below the minimum number of keys.
-
- Apr 14, 2013
-
-
Howard Chu authored
This reverts commit 372b3ddb. Original code works as designed.
-
- Apr 11, 2013
-
-
Claude Brisson authored
-
- Apr 08, 2013
-
-
Howard Chu authored
mdb_dbi_close() must allow any dbi < maxdbs, since opens in an uncommitted txn don't increment env->me_numdbs.
-
- Apr 05, 2013
-
-
Howard Chu authored
This reverts commit 8eef7a42. Previous commit was correct, duplicate keys should not appear here.
-
Howard Chu authored
-
- Apr 04, 2013
-
-
Howard Chu authored
Check for overflow pages, reset cursor position properly.
-
Howard Chu authored
In APPEND don't immediately reject matching key, since this is valid for APPENDDUP.
-
Howard Chu authored
Append mode should *reject* keys that are too small. Also allow APPENDDUP in mdb_put().
-
- Apr 02, 2013
-
-
Howard Chu authored
When fixing other cursors, must also fix their depth.
-
Howard Chu authored
Make sure C_INITIALIZED gets set on successful call
-
Howard Chu authored
-
- Mar 31, 2013
-
-
Hallvard Furuseth authored
-
Hallvard Furuseth authored
-
Hallvard Furuseth authored
Variables mdb_debug, mdb_debug_start were used undefined.
-
Howard Chu authored
-
Howard Chu authored
-
- Mar 29, 2013
-
-
Howard Chu authored
-
- Mar 26, 2013
-
-
Howard Chu authored
-
- Mar 25, 2013
-
-
Howard Chu authored
-
Howard Chu authored
-
- Mar 23, 2013
-
-
Claude Brisson authored
If the variable dkey.mv_size is non-zero, then it means dkey contains some original data which has to be put back in the child db, typically when the child db has just been created. But when using MDB_MULTIPLE, if this variable has not been reset to zero, we may come back to this section and wrongly think that there is some original data to be taken care of.
-