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
Hallvard Furuseth
f97552a83a
Check DB flags when refreshing a stale MDB DBI.
...
It's hairy to figure out when a DBI is valid. Catch destructive
user errors, and flags which another process changed under us.
12 years ago
Hallvard Furuseth
e4af9ee5da
ITS#7515 mdb_dbi_open(): Also open in parent txns.
...
This makes aborting nested and non-nested txns more
similar: The new DBI is available to the surrounding
context (parent txn and MDB_env respectively).
12 years ago
Hallvard Furuseth
f19655eabc
ITS#7517 Document that dirty DBs may not be closed
12 years ago
Hallvard Furuseth
8ad25001ff
ITS#7485 Document key/data size limits in lmdb.h.
...
mdb.c already describes them. The user doc should too.
12 years ago
Hallvard Furuseth
7aba5f5ab9
Add error code MDB_MAP_RESIZED.
12 years ago
Hallvard Furuseth
7fdf672041
Update MDB comments: Caveats, flags, etc.
12 years ago
Howard Chu
53cf2eed90
ITS#7491 check for filled dirty page list
...
Very large single transactions will fail. It's not just a problem when
nested transactions are used. We could make this dynamically sized,
but I'm not sure what the point is.
12 years ago
Howard Chu
fed573cb86
Happy New Year
12 years ago
Howard Chu
0702fbd688
Update version date
12 years ago
Howard Chu
e74d70e88e
Partially revert 65d40eb5d2
...
Allow both increasing and decreasing the environment size.
But don't allow decreasing below the currently occupied space.
12 years ago
Howard Chu
04b7c42109
Rename mdb_open/close mdb_dbi_open/close
...
Avoid possible symbol clashes with MDB-Tools libmdb
12 years ago
Howard Chu
98fe339089
Rename libmdb to liblmdb
12 years ago
Howard Chu
13f3bcd59c
Rename libmdb to liblmdb, lmdb.h
...
Avoid naming conflicts with other mdb* packages. Bump version to 0.9.5
12 years ago
Howard Chu
049b145ec7
Doc layout tweaks
12 years ago
Hallvard Furuseth
97ed96206d
mdb_env_sync(,force=1): Override MDB_MAPASYNC.
...
With MDB_MAPASYNC, the API provided no way to ensure full sync.
12 years ago
Hallvard Furuseth
7e620a34a2
API change: mdb_drop() only accepts del=0 or 1.
...
This allows for other flag values in the future.
12 years ago
Hallvard Furuseth
d903bed218
API change: mdb_env_set_maxdbs(, *named* DBs).
...
Let the user specify the number of databases he will actually
use. Adding 2 for FREE_DBI and MAIN_DBI is an internal matter.
12 years ago
Hallvard Furuseth
52e3adbdec
Renumber MDB_NOSUBDIR. Check mdb_env_open() flags.
...
MDB_NOSUBDIR was == MDB_REVERSEKEY. That affected the freelist:
Env flags are stored in mm_flags alias mm_dbs[FREE_DBI].md_flags.
It stays a persistent flag, in case mdb_env_open someday wants
to pick/verify which lockfile to use with the datafile.
Catch bad flags so they will no longer make it into the data file.
12 years ago
Howard Chu
617769bce5
Tweak output, add free page info
12 years ago
Howard Chu
754cd88819
Add mdb_env_info() to retrieve interesting env params
12 years ago
Hallvard Furuseth
e9d87866c4
mdb_env_open(): Keep mdb_env_set_flags() flags.
12 years ago
Howard Chu
ebb6859ea5
Add mdb_copy for backing up a DB environment
12 years ago
Hallvard Furuseth
756ce8e10c
Tweak MDB restrictions
12 years ago
Hallvard Furuseth
2b960613e0
ITS#7377 Document caveats/troubeshooting.
12 years ago
Howard Chu
ba6c3281a1
Add MDB_GET_CURRENT
...
return whatever the cursor is currently pointing at
12 years ago
Howard Chu
8bb10add24
More for ab04c50a32
...
Fix typos, error code ranges
12 years ago
Howard Chu
acbff5b1ea
Add mdb_cursor_renew()
...
Allow cursors on read-only txns to be reused with later txns.
12 years ago
Howard Chu
c542442c9f
Add MDB_SET_KEY cursor op
...
Overwrites the passed in key with the DB's key
12 years ago
Howard Chu
ab04c50a32
ITS#7383 More explicit error codes
12 years ago
Howard Chu
de77882898
Update comments, bump version
...
Note read-write vs read-only mmap tradeoffs.
12 years ago