Howard Chu
6a9476822d
Merge remote-tracking branch 'origin/mdb.master'
2012-12-07 12:28:25 -08:00
Howard Chu
784757faa9
ITS#7465 fail if both -a and -s specified
2012-12-07 12:06:30 -08:00
Howard Chu
6062cd9777
Merge remote-tracking branch 'origin/mdb.master'
2012-12-06 17:41:14 -08:00
Howard Chu
9a5d4370be
Yet more retries for overflow page scan
2012-12-06 17:39:49 -08:00
Howard Chu
8ab758c9cc
Merge remote-tracking branch 'origin/mdb.master'
2012-12-06 17:11:29 -08:00
Howard Chu
5863d5cc61
Freelist fixes
...
Keep list sorted if it grows during a write. Don't free pghead until
we're sure our writes are all finished.
2012-12-06 09:05:30 -08:00
Howard Chu
a037e27fc0
Merge remote branch 'origin/mdb.master'
2012-12-04 06:39:01 -08:00
Howard Chu
7b10fdde00
Fix mdb_env_copy
...
Just write in 2^31 sized chunks
2012-12-04 06:30:22 -08:00
Howard Chu
3a4bf407b4
Add support for 64 bit index hashing
2012-12-04 02:53:59 -08:00
Howard Chu
bbfe587246
Add support for 64 bit index hashing
2012-12-03 18:14:28 -08:00
Howard Chu
e1559100eb
Fix typo
...
See commit bb36bdcd1c
2012-12-03 18:00:36 -08:00
Howard Chu
fe9e1113ae
Rename mdb_open/close mdb_dbi_open/close
2012-12-03 17:06:31 -08:00
Howard Chu
f9d41ba98a
Merge remote-tracking branch 'origin/mdb.master'
2012-12-03 16:54:33 -08:00
Howard Chu
04b7c42109
Rename mdb_open/close mdb_dbi_open/close
...
Avoid possible symbol clashes with MDB-Tools libmdb
2012-12-03 16:53:24 -08:00
Howard Chu
e545b742e5
Fix 5c1ee7f7ba
...
mdb_cursor_sibling() no longer pops cursor before returning.
2012-12-03 13:57:46 -08:00
Howard Chu
5af47adf6b
Fix mdb_midl_shrink
2012-12-03 13:57:28 -08:00
Howard Chu
c0f7090cac
Plug slapindex memleak
2012-12-03 11:39:14 -08:00
Howard Chu
6001417f30
ITS#7459 fix config schema
2012-12-03 06:55:12 -08:00
Howard Chu
aa1ae03caf
Rename libmdb to liblmdb
2012-11-30 12:59:18 -08:00
Howard Chu
ef3b4213ff
Merge remote-tracking branch 'origin/mdb.master'
2012-11-30 12:56:58 -08:00
Howard Chu
d3f51fdcf7
More retries for overflow page scan
2012-11-30 12:54:19 -08:00
Howard Chu
1509d75363
Merge remote-tracking branch 'origin/mdb.master'
2012-11-30 12:47:00 -08:00
Howard Chu
98fe339089
Rename libmdb to liblmdb
2012-11-30 12:45:34 -08:00
Howard Chu
2a94ebced6
Add install target
2012-11-30 12:39:53 -08:00
Howard Chu
e51aff55e6
Rename mdb.h to lmdb.h
2012-11-30 12:35:05 -08:00
Howard Chu
d0e86d485d
Merge remote-tracking branch 'origin/mdb.master'
2012-11-30 12:33:18 -08:00
Howard Chu
13f3bcd59c
Rename libmdb to liblmdb, lmdb.h
...
Avoid naming conflicts with other mdb* packages. Bump version to 0.9.5
2012-11-30 12:30:51 -08:00
Howard Chu
f165507199
ITS#7455 use freelist for overflow pages
2012-11-30 12:18:27 -08:00
Howard Chu
185136397d
Drop unneeded #include <time.h>
2012-11-28 15:34:44 -08:00
Howard Chu
049b145ec7
Doc layout tweaks
2012-11-28 15:34:19 -08:00
Hallvard Furuseth
97ed96206d
mdb_env_sync(,force=1): Override MDB_MAPASYNC.
...
With MDB_MAPASYNC, the API provided no way to ensure full sync.
2012-11-28 00:59:00 +01:00
Hallvard Furuseth
b9275c9991
mdb_cursor_dbi(): Assume valid args.
...
It returned 0, which is the freelist DBI and is valid for a few uses.
2012-11-28 00:59:00 +01:00
Hallvard Furuseth
7e620a34a2
API change: mdb_drop() only accepts del=0 or 1.
...
This allows for other flag values in the future.
2012-11-28 00:59:00 +01:00
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.
2012-11-28 00:59:00 +01:00
Hallvard Furuseth
6b56e0fab1
ITS#7453 Fix reset of MDB_NOSYNC/MDB_NOMETASYNC.
...
mdb_env_open() with these flags did not open a synchronizing
file descriptor. Thus disabling them later did not work.
2012-11-28 00:59:00 +01:00
Hallvard Furuseth
0201b9002c
Tweak MDB_FIXEDMAP handling.
...
Drop mmap()'s MAP_FIXED flag, so it returns another address instead
of unmapping existing overlapping pages. Verify the returned address.
2012-11-28 00:59:00 +01:00
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.
2012-11-28 00:59:00 +01:00
Howard Chu
e1ccebcf88
ITS#7451 fix back-ldif return on empty dir
...
Broken by commit 2d1af3f2f7
2012-11-27 14:16:21 -08:00
Howard Chu
a061f2192e
ITS#7452 fix typo in envflags
2012-11-26 16:22:27 -08:00
Jan Synacek
3c19681372
ITS#7431 fix constraint_check_restrict segfault
2012-11-26 13:49:53 -08:00
Howard Chu
f13ba102e1
ITS#7450 enforce SLAPD_MAX_DAEMON_THREADS
...
Also allow the max to be redefined at compile time. Of course, there is no
legitimate reason to do so.
2012-11-25 19:43:49 -08:00
Howard Chu
fc0563ce53
ITS#7449 fix signedness for index_substr_any_*
...
Of course, no one would ever have any legitimate reason to set these
items to anywhere near such extreme values in the first place.
2012-11-25 19:31:14 -08:00
Ralf Haferkamp
c728ebf586
ITS#7428 Use non-blocking IO during SSL Handshake
...
If a timeout is set, perform the SSL Handshake using non-blocking IO. This way
we can timeout if SSL Handshake gets stuck for whatever reason.
This code is currently hidden behind #ifdefs (LDAP_USE_NON_BLOCKING_TLS) and
disabled by default as there seem to be some problems using NON-blocking
I/O during the TLS Handshake when linking against NSS (either a bug in NSS
itself of in tls_m.c, see discussion on -devel)
This patch adds an additional parameter to ldap_int_poll() in order to indicate
if we're waiting in order to perform a read or write operation.
2012-11-21 14:25:18 +01:00
Ralf Haferkamp
be781ab808
ITS#7445 fix deref control exposure
...
do not expose control until deref overlay is actually instantiated at least
once (see also ITS#6647)
2012-11-19 16:09:59 +01:00
Ralf Haferkamp
7c97c036c8
Fixed insertion of the overlay_remove callback (SLAP_CONFIG_DELETE)
2012-11-19 14:55:29 +01:00
Ralf Haferkamp
f86e0cd8dc
ITS#7436 slapo-deref: call overlay_register_control in db_open
2012-11-09 15:48:02 +01:00
Howard Chu
88fd28886d
Merge remote-tracking branch 'origin/mdb.master'
2012-11-05 09:47:03 -08:00
Howard Chu
bb36bdcd1c
ITS#7432 fix typo in mdb_midl_sort
...
Wasn't pushing the optimal half of the array onto the stack,
thus used more stack than expected -> overrun.
2012-11-05 05:06:06 -08:00
Ralf Haferkamp
7a8c9a6419
ldapc++: fix builds with gcc-4.7 (ITS#7281,ITS#7304)
2012-11-02 12:10:43 +01:00
Howard Chu
b4126863a4
ITS#7426 ignore syncrepl ops
2012-11-01 17:56:52 -07:00