Hallvard Furuseth
a22c31115f
mdb_txn_renew0(): Fix un-mutexed me_flags update.
...
Replace env flag MDB_LIVE_READER with field me_live_reader.
11 years ago
Hallvard Furuseth
684bb867ce
Doxygen fixes
11 years ago
Hallvard Furuseth
4e954f8ae8
ITS#7793 mdb_cursor_put(): Fix MDB_CURRENT.
...
Ignore key, broken by 5bda3565a9
and some older code. Document and clarify MDB_CURRENT usage.
Also affects non-MDB_CURRENT put() with empty data and a key
which matches by the mdb_set_compare function but not by memcmp.
11 years ago
Howard Chu
aa3463ec7c
Bump version to 0.9.11
11 years ago
Hallvard Furuseth
88342f9661
ITS#7775 Add mdb_env_set_assert()
11 years ago
Hallvard Furuseth
e40dae1064
Add mdb_env_<set,get>_userctx()
11 years ago
Hallvard Furuseth
46de4ab84c
ITS#7665 Drop lmdb.h doc on non-overlapping flags.
...
It was inaccurate and misplaced. Verify it in mdb.c instead.
11 years ago
Hallvard Furuseth
7e453c9763
Fix mdb_reader_list() and its spec.
...
It and the MDB_msg_func can now return >= 0 for success.
Always return any MDB_msg_func() error result.
11 years ago
Hallvard Furuseth
a58fd16ae5
Support dynamic max MDB keysize.
11 years ago
Hallvard Furuseth
734bc7e6ad
Relax MDB_MAXKEYSIZE for existing data.
...
Handle keys stored by a liblmdb with a bigger MDB_MAXKEYSIZE.
mdb_get/mdb_del(absent key bigger than our MDB_MAXKEYSIZE)
now return MDB_NOTFOUND instead of MDB_BAD_VALSIZE.
11 years ago
Howard Chu
f39bceb800
Doc tweak
...
Measured perf cost of meminit was 7% worst case on an Intel Core2
system. YMMV.
11 years ago
Howard Chu
eecbaa5942
Clarify WRITEMAP / NOMEMINIT
11 years ago
Howard Chu
509a197728
Change default mem init behavior
...
Init malloc'd memory by default, use #MDB_NOMEMINIT to disable.
Bump version to 0.9.10
11 years ago
Hallvard Furuseth
92f71f50f9
Add MDB_CLEANMEM option.
...
Initialize unused portions of DB pages, for security or to silence
checkers like Purify and Valgrind. Like BDB configure --enable-umrw.
11 years ago
Howard Chu
7449ca604c
Bump to 0.9.9
11 years ago
Howard Chu
b86f08e9d6
Add mdb_env_get_fd()
...
Return the environment's filedescriptor. Useful when the caller
is doing their own locking.
11 years ago
Howard Chu
ab9b08f8af
ITS#7725 add MDB_NORDAHEAD flag for env_open
11 years ago
Hallvard Furuseth
9f7ae8925f
Add Caveat: Readers need write access. Whitespace.
11 years ago
Howard Chu
79eac42c0f
s/MDB_NORDLOCK/MDB_NOLOCK/
...
Leave all lock management to the caller.
11 years ago
Howard Chu
a1685c3ef7
More doc for MDB_NORDLOCK
11 years ago
Howard Chu
f739940547
Add MDB_NORDLOCK to omit all reader table usage
...
Calling app wants to manage its own locking.
11 years ago
Hallvard Furuseth
5b21307f29
Update MDB documentation and comments.
11 years ago
Howard Chu
0f842a2710
Release 0.9.8
11 years ago
Howard Chu
5c5300c604
Bump version to 0.9.8
11 years ago
Howard Chu
2e7130cab0
Allow mdb_env_set_mapsize() on an open environment
...
The caller is responsible for making sure no transactions are
active in this process before resizing. This is slightly lighter
weight than doing a full env_close/env_open cycle.
11 years ago
Howard Chu
2a28686e4f
ITS#7672 fix mdb_dbi_flags
...
Use a txn instead of env argument. Only return persistent flags.
11 years ago
Howard Chu
c22a7d98ec
Update caveats now that mdb_reader_check exists
11 years ago
Hallvard Furuseth
9beea541e1
Replace EINVALs with generalized MDB_INCOMPATIBLE.
...
Also check xcursor instead of DUPSORT, it's slightly briefer.
11 years ago
Salvador Ortiz
86551828ab
ITS#7660 Add mdb_txn_env to API
11 years ago
Howard Chu
1ac3c8308f
Add mdb_env_get_maxkeysize()
11 years ago
Hallvard Furuseth
1ecd86b14c
Replace unpredictable EINVAL error returns.
...
Return EINVAL only for simple programmer errors.
11 years ago
Hallvard Furuseth
6214423163
Clarify doc: mdb_copy, nested txns, mdb_drop().
...
mdb_copy: Does not copy lockfile. Can trigger file growth.
mdb_txn_begin(): Clarify usage restrictions.
mdb_drop(): State what to do rather than what will be done, since
closing the handle could otherwise be read as happening even at failure.
11 years ago
Howard Chu
a4bbe57f8b
Add mdb_reader_check()
12 years ago
Howard Chu
49289f0d2e
Add mdb_reader_list()
...
Dump the active slots in the reader table.
12 years ago
Howard Chu
fc137e39a3
Add mdb_dbi_flags()
...
Retrieve the flags from a DB handle.
12 years ago
Howard Chu
fa7228962b
Bump version to 0.9.7
12 years ago
Howard Chu
589370d880
Tweaks for MDB_MULTIPLE
...
Terminate loop on intermediate failures, return count of written items,
document usage.
12 years ago
Howard Chu
d29b9600e6
Windows portability fixes for prev commit
12 years ago
Howard Chu
c68e5ae9be
Add mdb_env_copyfd()
...
Allow writing backup to an already opened file handle, for piping
to tar/gzip/ssh/whatever.
12 years ago
Hallvard Furuseth
a1b16ce5f0
ITS#7598 Tweak MDB_<NEXT/PREV>_NODUP,fix mdb_stat.
...
MDB_NEXT_NODUP, MDB_PREV_NODUP: Allow for non-MDB_DUPSORT databases.
No mdb.c code changes needed.
mdb_stat.c: Use MDB_NEXT_NODUP, to avoid a crash with a DUPSORT mainDB.
12 years ago
Hallvard Furuseth
b389341b4b
mdb_dcmp(): Assume the database has MDB_DUPSORT.
...
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.
12 years ago
Hallvard Furuseth
91a93004ce
Update MDB doc: Cursors, DB handles, data lifetime
12 years ago
Howard Chu
da3e4d78d6
Fix typo from 7aba5f5ab9
12 years ago
Howard Chu
272e4e98ad
Add MDB_NOTLS envflag.
12 years ago
Hallvard Furuseth
afe488d8a9
Catch MDB txn reuse/sync errors.
12 years ago
Howard Chu
227329c8e1
Fixes for dbi_open/close, ITS#7515
12 years ago
Howard Chu
30da15a18d
Tweak mode_t def per Hallvard's suggestion
12 years ago
Howard Chu
0c568117ce
MSVC doesn't define mode_t
12 years ago
Howard Chu
3394bac2c0
Update error code instances
12 years ago
Hallvard Furuseth
80cd881184
Tweak MDB_INCOMPATIBLE description
12 years ago