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
Howard Chu
951418f0bf
ITS#7427 fix for spurious old entries
2012-11-01 08:36:28 -07:00
Howard Chu
64b164b4fc
Merge remote-tracking branch 'origin/mdb.master'
2012-10-30 16:34:14 -07:00
Jan Synacek
2f232b5281
ITS#7423 Update slapo-constraint tests
2012-10-30 16:09:40 -07:00
Jan Synacek
2991111f82
ITS#7418 Fix slapo-constraint: handle uri and restrict correctly
2012-10-30 16:07:26 -07:00
Howard Chu
0108327c27
Better fix for MDB_DEBUG tweak -- from hbf
2012-10-25 07:03:25 -07:00
Howard Chu
b68aa3f86b
Revert "MDB_DEBUG tweak for old compilers"
...
This reverts commit ef2092eac9
.
2012-10-25 06:54:09 -07:00
Howard Chu
ef2092eac9
MDB_DEBUG tweak for old compilers
2012-10-25 05:28:55 -07:00
Howard Chu
495af6cacc
More backend info updates: MDB, NDB
2012-10-24 06:53:01 -07:00
Howard Chu
29dfdb3ca2
ITS#7421 move olcExtraAttrs to Frontend options
2012-10-24 06:38:24 -07:00
Howard Chu
52a0b4f83c
Merge remote-tracking branch 'origin/mdb.master'
2012-10-23 04:49:09 -07:00
Howard Chu
c2f15990c7
Fix flag checks in mdb_open
2012-10-23 04:48:04 -07:00
Howard Chu
f5b8d017df
fix Windows mdb_env_copy(), WriteFile overflow
2012-10-23 04:32:55 -07:00
Howard Chu
f51efd4b03
Merge remote-tracking branch 'origin/mdb.master'
2012-10-22 17:05:26 -07:00
Howard Chu
66f2b7b2ec
Make sure mdb_open flags are committed on main DB
...
If no data was modified in the txn, mdb_open flag changes were dropped.
2012-10-22 17:03:15 -07:00
Howard Chu
5f2ddb5532
Minor cleanup
2012-10-22 16:13:42 -07:00
Howard Chu
5c1ee7f7ba
Fix MDB_PREV
...
Could return 1 garbage record before actual data, if starting from EOF
2012-10-22 16:02:30 -07:00