Howard Chu
3b272b43dc
In mdb_checkpoint, force sync
...
Otherwise this is a no-op in various NOSYNC/MAPASYNC situations
2013-09-02 12:54:48 -07:00
Howard Chu
b03ce7af6c
ITS#7676,7677 don't leak libldap err codes
2013-08-30 12:28:17 -07:00
Howard Chu
8d8ad70026
Merge remote-tracking branch 'origin/mdb.master'
2013-08-28 20:45:12 -07:00
Howard Chu
3d59ca3558
Add a changelog
2013-08-28 20:22:41 -07:00
Howard Chu
5c5300c604
Bump version to 0.9.8
2013-08-28 19:17:25 -07:00
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.
2013-08-28 19:12:59 -07:00
Howard Chu
c1bb7e7610
Merge remote-tracking branch 'origin/mdb.master'
2013-08-27 06:34:59 -07:00
Howard Chu
2a28686e4f
ITS#7672 fix mdb_dbi_flags
...
Use a txn instead of env argument. Only return persistent flags.
2013-08-27 06:28:30 -07:00
Howard Chu
ca310ebff4
Add channel binding support
...
Currently only implemented for OpenSSL.
Needs an option to set the criticality flag.
2013-08-26 23:31:48 -07:00
Hallvard Furuseth
4dd10d70a5
mdb_page_unspill(): Fix dirty_room in nested txn
2013-08-25 23:59:58 +02:00
Howard Chu
56c2a8d04a
Another take on spill_pgs and deletes
2013-08-24 20:37:45 +01:00
Howard Chu
b917266ca1
Cleanup prev commit
2013-08-24 11:54:05 -07:00
Howard Chu
41bf5c906a
Speedup deletion from spill_pgs
2013-08-24 19:51:47 +01:00
Howard Chu
6423c87749
ITS#7671 always return the key for a dup val
2013-08-23 07:36:07 -07:00
Howard Chu
e15a90c762
ITS#7670 Tweak cursor_del0
...
Always leave cursor pointing at "next" node, if any.
Find next sibling if we're already at end of current page.
2013-08-23 04:55:41 -07:00
Hallvard Furuseth
6616034eb9
mdb_page_spill(): Fix nested txn mt_dirty_room
2013-08-23 13:52:35 +02:00
Hallvard Furuseth
392be3a7c6
Simplify last commits
2013-08-23 13:52:35 +02:00
Howard Chu
45c4ed1805
Tweak prev commit
...
If somehow "need" is larger than the list size, don't
try to fake out the dirty list.
2013-08-22 21:29:53 -07:00
Howard Chu
7b1db13050
Less aggressive page_spill
...
spilling all possible pages is a waste because the majority will be
needed again. Just do 1/8th of the dirty list instead.
2013-08-22 18:51:48 -07:00
Howard Chu
c22a7d98ec
Update caveats now that mdb_reader_check exists
2013-08-20 17:37:53 -07:00
Howard Chu
50ab5bb1ed
Cleanup comments in prev commit
2013-08-19 14:25:13 -07:00
Howard Chu
0c86184bae
More fixes for prev commit
2013-08-19 13:54:17 -07:00
Howard Chu
eaa3469736
Fix 34f832faee
...
Lock ordering issues
2013-08-19 04:28:05 -07:00
Howard Chu
f947f789f3
Fix prev commit
...
Hardcoded number of queues was leftover from preliminary
work. Use connection_pool_queues.
2013-08-18 21:15:30 -07:00
Howard Chu
34f832faee
Multiple queues per threadpool
2013-08-16 19:04:49 -07:00
Howard Chu
f230503b10
Tweak mutex acquisition
...
Slightly reduce held time.
2013-08-16 18:58:39 -07:00
Howard Chu
9121a473de
Merge remote-tracking branch 'origin/mdb.master'
2013-08-16 06:44:58 -07:00
Howard Chu
214e9ed07d
Silence warnings
2013-08-14 09:57:25 -07:00
Hallvard Furuseth
82b27c09c9
Tweak ITS#7615 fix: Obey strict-aliasing rules.
...
Do not access a long long as an array of longs.
2013-08-14 15:21:59 +02:00
Howard Chu
5b2bfec3b4
More for 907b9d4877
...
op.o_extra is only used with threading
2013-08-14 03:51:29 -07:00
Howard Chu
2b7237bdcf
Merge remote-tracking branch 'origin/mdb.master'
2013-08-13 13:35:46 -07:00
Howard Chu
76f0a02485
ITS#7664 better fix
...
For RDONLY, don't get lockfile until we know datafile exists.
Also, don't try to create a new datafile for me_mfd if someone
deleted it after we got me_fd.
2013-08-13 13:12:47 -07:00
Howard Chu
a77ffaaa5d
Revert "ITS#7664 delete lockfile if there is no environment"
...
This reverts commit 8725838409
.
2013-08-13 13:05:32 -07:00
Howard Chu
beca9bbb15
Merge remote-tracking branch 'origin/mdb.master'
2013-08-13 11:36:50 -07:00
Howard Chu
8725838409
ITS#7664 delete lockfile if there is no environment
2013-08-13 11:34:32 -07:00
Howard Chu
cec27aa517
Fix prev commit
2013-08-12 15:04:51 -07:00
Howard Chu
907b9d4877
Fixes for threaded indexer
...
Works now, but still 2x slower. Leave disabled.
2013-08-12 14:50:54 -07:00
Howard Chu
c740cbc1e5
Merge remote-tracking branch 'origin/mdb.master'
2013-08-12 12:49:24 -07:00
Howard Chu
eaeeecc3b2
Fix uninit'd mem ref in mdb_page_split
...
Don't compare cursors beyond their depth. (detected by valgrind)
2013-08-12 12:43:42 -07:00
Howard Chu
6e9762f9e7
Merge remote-tracking branch 'origin/mdb.master'
2013-08-11 17:27:17 -07:00
Howard Chu
6ecee1cbf9
Tweak NODUPDATA flag check
...
Should allow for the possibility of future flag combos.
2013-08-11 17:25:00 -07:00
Howard Chu
76c8fd5c6c
Merge remote-tracking branch 'origin/mdb.master'
2013-08-11 17:18:20 -07:00
Howard Chu
5a5d33ff33
Fix obscure MDB_MULTIPLE bug
...
If a key has a single existing value, and then a put (MDB_MULTIPLE)
is done where the first of the multiple values matches the existing
value, the put would return SUCCESS without writing any of the
values. Fixed to loop to the next value as intended.
2013-08-11 17:15:03 -07:00
Howard Chu
ab44974baf
Merge remote-tracking branch 'origin/mdb.master'
2013-08-10 16:20:47 -07:00
Howard Chu
76f8b77e36
Point to mdb.c for docs on macros in Makefile
2013-08-10 16:19:44 -07:00
Howard Chu
634dcb507e
Merge remote-tracking branch 'origin/mdb.master'
2013-08-10 05:05:57 -07:00
Howard Chu
64f06d5acc
ITS#7662 cleanup reader txn in mdb_entry_get()
2013-08-10 05:05:16 -07:00
Hallvard Furuseth
9c49ef1d71
Avoid compiling debug args with C90 compilers.
...
Use double DPRINTF() parenthesis, so varargs macros are not needed.
Parenthesize MDB_DEBUG, in case the user defines it as foo || bar.
2013-08-10 13:50:10 +02:00
Hallvard Furuseth
76d31573a4
Refuse ops on bad txns
2013-08-10 13:23:30 +02:00
Hallvard Furuseth
9beea541e1
Replace EINVALs with generalized MDB_INCOMPATIBLE.
...
Also check xcursor instead of DUPSORT, it's slightly briefer.
2013-08-10 13:23:30 +02:00