Commit graph

140 commits

Author SHA1 Message Date
Quanah Gibson-Mount
b1afa1f2c7 Happy New Year! 2020-01-09 16:32:20 +00:00
Howard Chu
af2f8cc814 ITS#8704 Fix PREVMETA, rename to PREVSNAPSHOT
and enforce exclusive access to environment. Also fix txn_begin/pick_meta
to use correct meta page, and reset the flag after successful commit.
2019-01-17 19:02:39 +00:00
Howard Chu
1de70b2130 Happy New Year 2019-01-14 19:06:20 +00:00
moneromooo-monero
561ba50158 ITS#8857 document mdb_cursor_del does not invalidate the cursor 2018-09-10 19:05:16 +01:00
Howard Chu
eab90d5389 ITS#8908 DOC: GET_MULTIPLE etc don't return the key
Unnecessary since these are DUPs, the key will always be the same
2018-08-29 01:25:01 +01:00
Quanah Gibson-Mount
0a2622317f Happy New Year 2018-03-22 15:20:57 +00:00
moneromooo-monero
3daab3be73 ITS#8704 add MDB_PREVMETA flag to mdb_env_open
used to open the previous meta page, in case the latest one
is corrupted

From https://github.com/LMDB/lmdb/pull/12
2017-07-31 18:48:30 +01:00
Howard Chu
6ac9aa666e Happy New Year 2017-01-11 14:39:08 +00:00
Hallvard Furuseth
72c893fc82 Mention MDB_PREV_MULTIPLE along with MDB_NEXT_MULTIPLE 2016-12-15 22:12:45 +01:00
Hallvard Furuseth
77845345ca ITS#8505 Clarify fork() caveat, mdb_env_get_fd(), flock->fcntl. 2016-10-04 21:16:27 +02:00
Hallvard Furuseth
58b0ce50b3 mdb_size comments 2016-08-02 21:04:17 +02:00
Hallvard Furuseth
4d47e89f4d MDB_VL32: Switch to mdb_size_t formats PRIu64 & co
Drop macro Y=MDB_FMT_Y, add Yu/Yd=MDB_PRIy(). Replace
Y"d..." -> Yd"...", Y"u..." -> Yu"..." / MDB_SCNy(u)"...".
2016-08-02 21:02:35 +02:00
Hallvard Furuseth
a43fcad8c6 MDB_VL32: Match mdb_size_t type with format modifier.
When using format modifier "ll" or "I64", use the matching
type unsigned <long long / __int64> rather than uint64_t.
2016-07-23 12:43:16 +02:00
Hallvard Furuseth
f25d716513 Fix MDB_INTEGERKEY doc of integer types 2016-07-23 12:18:01 +02:00
Hallvard Furuseth
32764bcb52 Factor out MDB_SIZE_MAX, MDB_FMT_Y, MDB_FMT_Z 2016-07-23 12:08:12 +02:00
Hallvard Furuseth
84610e65da Add error MDB_PROBLEM, replace some MDB_CORRUPTED
When problem is most likely in txn, not on disk.
2016-07-14 05:53:21 +02:00
Hallvard Furuseth
5ea12b0be8 ITS#8209 MDB_CP_COMPACT: Handle empty or broken DB
Preserve DB flags (use metapage#1) when main DB is empty.
Fail if metapage root != actual root in output file.
2016-06-25 07:57:04 +02:00
Howard Chu
5f5f4dab9c Happy New Year 2016-01-30 12:54:32 +00:00
Hallvard Furuseth
e394e023e4 Fix MDB_VL32 mdb_cursor_count()/entrycount types 2016-01-28 19:45:01 +01:00
Howard Chu
b5018e26bc Update WRITEMAP doc 2016-01-23 16:51:42 +00:00
Hallvard Furuseth
d6995599b4 lmdb.h Caveats: Reserved vs. actual mem/disk usage 2016-01-12 23:18:06 +01:00
Howard Chu
27b1c5f366 Add MDB_PREV_MULTIPLE
Logical counterpart to GET_MULTIPLE, NEXT_MULTIPLE
2016-01-07 18:28:29 +00:00
Howard Chu
c3852f29af MDB_VL32 tweak prev commit 2015-12-28 19:38:32 +00:00
Howard Chu
7b9928ced4 MDB_VL32 - prevent mixing with non-VL32 builds 2015-12-23 23:02:06 +00:00
Howard Chu
825ab2ad52 MDB_RESERVE doc
Add mdb_put text to mdb_cursor_put description for people who
fail to draw logical conclusions.
2015-12-22 18:30:41 +00:00
Howard Chu
860527f66e Note that we're prepping for 1.0 2015-12-20 01:08:18 +00:00
Howard Chu
1ba5adb2ec MDB_VL32 preparation
Use 64 bit types consistently. This keeps database structures the
same size for MDB_VL32 and native 64 bit builds.
2015-12-20 00:19:12 +00:00
Howard Chu
2cc88d20cc Add Getting Started doc 2015-12-19 22:53:26 +00:00
Howard Chu
bc4c177b91 Doc tweak - MDB_RESERVE / DUPSORT incompat
For those people who insist on ignoring the obvious.
2015-08-22 14:00:12 +01:00
Howard Chu
c77fbc6f35 Another MDB_APPEND doc tweak
Missed this in 7ce29b9edb
2015-08-21 21:40:33 +01:00
Howard Chu
80e997a0eb Bump version to 0.9.16 2015-08-14 01:01:40 +01:00
Hallvard Furuseth
3e301ec400 Catch most uses of finished/parent txns.
* Add MDB_TXN_FINISHED, MDB_TXN_HAS_CHILD, MDB_TXN_BLOCKED.
* Clear mt_numdbs in writers, for TXN_DBI_EXIST() to catch.
  We already do in readers.
2015-07-19 21:31:25 +02:00
Hallvard Furuseth
45e405528b ITS#8181 Verify that records are/aren't DBs.
Except we don't catch the user passing F_SUBDATA to
mdb_cursor_<put/del>, like an internal LMDB call.
2015-07-11 21:01:40 +02:00
Hallvard Furuseth
943b23f011 Restore support for Posix semaphores 2015-07-02 21:14:56 +02:00
Howard Chu
bf55ce5545 Bump version to 0.9.15
(not really, since this is the dev/non-release branch)
2015-06-19 14:13:43 +01:00
Hallvard Furuseth
68f64aa104 Clarify mdb_env_open() doc of 'mode' param 2015-06-02 20:49:33 +02:00
Hallvard Furuseth
9bb915675a ITS#8117 Fix MDB_INTEGERDUP keysize doc + md_dcmp 2015-05-19 20:33:35 +02:00
Hallvard Furuseth
5224774f3c Reformat mdb_dbi_open() doc for clarity 2015-04-14 20:24:30 +02:00
Quanah Gibson-Mount
6fe12f3273 Happy New Year 2015-02-12 11:17:59 -06:00
Howard Chu
8bb541bc40 Also support NOMETASYNC on txn_begin 2015-02-02 10:33:41 +00:00
Howard Chu
3368d1f5e2 Support MDB_NOSYNC on mdb_txn_begin() 2015-01-30 09:21:39 +00:00
Hallvard Furuseth
570ba6fb86 Fix EACCES description 2015-01-27 06:10:57 +01:00
Hallvard Furuseth
404697b369 mdb_env_set_flags(): Reject CHANGELESS flags.
Reverts part of a2ac10107e.
MDB_ROBUST needed to be accepted, but that flag is gone.
2015-01-14 08:12:50 +01:00
Hallvard Furuseth
d711e357da Whitespace (align with mdb.RE) 2015-01-12 21:02:29 +01:00
Hallvard Furuseth
631970e485 Make SysV semaphores robust. Cleanup MDB_ROBUST. 2015-01-12 21:02:29 +01:00
Hallvard Furuseth
9441012435 ITS#8021 doc: Don't mix MDB_WRITEMAP + non-WRITEMAP 2015-01-12 12:19:51 +01:00
Howard Chu
f83f62a7ae ITS#8021 env_sync is invalid in RDONLY env 2015-01-09 11:25:52 +00:00
Howard Chu
7ce29b9edb Fix MDB_APPEND doc
We actually compare the new key against the last key, to prevent
corruption.
2014-12-15 20:40:59 +00:00
Howard Chu
9cc04f604f Clarify mdb_dbi_open doc
The concurrency restriction is on threads within a single process.
Multiple processes can use mdb_dbi_open without affecting each other.
2014-12-08 03:21:09 +00:00
Howard Chu
c36c167cc4 ITS#7994 fix prev commit
Strip docs promising behaviors that we don't promise to hold.
Strip MDB_txnid_t typedef.
2014-12-05 19:18:01 +00:00