- May 10, 2013
-
-
Howard Chu authored
Forgot #include <errno.h>
-
Howard Chu authored
-
- May 05, 2013
-
-
Hallvard Furuseth authored
mdb_txn_begin(): Do not free(mt_free_pgs), it needs mdb_midl_free(). mdb_txn_commit(): Catch commit(child) error.
-
Hallvard Furuseth authored
Do not try to scan me_dbxs in a closed/never-opened MDB_env. Broken by 7d643d3a and 151c416b.
-
- May 04, 2013
-
-
Hallvard Furuseth authored
No real change. mdb_cursor_init() checks if it needs mx, so pass it unconditionally. Set C_ALLOCD for shadow cursors, for clarity. (It was always set as it should anyway from the origin cursor, which would have C_ALLOCD.)
-
Hallvard Furuseth authored
Unused function when MDB_DEBUG. Unused 'excl' param.
-
Hallvard Furuseth authored
There was little point in returning EINVAL when not: Comparing (A,B) and (B,A) would claim (A > B && B > A), which could confuse callers.
-
Hallvard Furuseth authored
-
Hallvard Furuseth authored
Catch mdb_cursor_renew(write txn's cursor). Add flag C_UNTRACK, so mdb_cursor_close need not peek inside a possibly-freed readonly txn.
-
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
-