]> git.sur5r.net Git - openldap/log
openldap
11 years agoMerge remote-tracking branch 'origin/mdb.master'
Howard Chu [Fri, 6 Sep 2013 19:54:02 +0000 (12:54 -0700)]
Merge remote-tracking branch 'origin/mdb.master'

11 years agoupdates
Howard Chu [Thu, 5 Sep 2013 23:23:49 +0000 (16:23 -0700)]
updates

11 years agoITS#7682 In mdb_env_copy retry open if O_DIRECT fails
Salvador Ortiz [Thu, 5 Sep 2013 22:36:52 +0000 (17:36 -0500)]
ITS#7682 In mdb_env_copy retry open if O_DIRECT fails

11 years agoMore for 5f6fa8c04204888c4ff7ac6be1868d81ff4410a8
Howard Chu [Thu, 5 Sep 2013 13:02:07 +0000 (06:02 -0700)]
More for 5f6fa8c04204888c4ff7ac6be1868d81ff4410a8

Reset delete flag in cursor_put().

11 years agoITS#7681 fix mdb_cursor_set behaviour for MDB_SET_RANGE
Claude Brisson [Thu, 5 Sep 2013 10:58:18 +0000 (12:58 +0200)]
ITS#7681 fix mdb_cursor_set behaviour for MDB_SET_RANGE

11 years agoFix uninit'd poolqs in prev commit
Howard Chu [Wed, 4 Sep 2013 00:29:32 +0000 (17:29 -0700)]
Fix uninit'd poolqs in prev commit

11 years agoRemember if last cursor op was a delete
Howard Chu [Tue, 3 Sep 2013 23:10:20 +0000 (16:10 -0700)]
Remember if last cursor op was a delete

If so, don't advance cursor on next NEXT. Also, init xcursor
on the next GET_CURRENT.

11 years agoMore for threadpool queues
Howard Chu [Tue, 3 Sep 2013 22:06:37 +0000 (15:06 -0700)]
More for threadpool queues

Allow dynamic reconfig

11 years agoITS#7680 Fix typos in manpages.
Jan Synacek [Tue, 3 Sep 2013 12:09:37 +0000 (14:09 +0200)]
ITS#7680 Fix typos in manpages.

11 years agoIn mdb_checkpoint, force sync
Howard Chu [Mon, 2 Sep 2013 19:54:48 +0000 (12:54 -0700)]
In mdb_checkpoint, force sync

Otherwise this is a no-op in various NOSYNC/MAPASYNC situations

11 years agoITS#7676,7677 don't leak libldap err codes
Howard Chu [Fri, 30 Aug 2013 19:18:55 +0000 (12:18 -0700)]
ITS#7676,7677 don't leak libldap err codes

11 years agoMerge remote-tracking branch 'origin/mdb.master'
Howard Chu [Thu, 29 Aug 2013 03:45:12 +0000 (20:45 -0700)]
Merge remote-tracking branch 'origin/mdb.master'

11 years agoAdd a changelog
Howard Chu [Thu, 29 Aug 2013 03:22:41 +0000 (20:22 -0700)]
Add a changelog

11 years agoBump version to 0.9.8
Howard Chu [Thu, 29 Aug 2013 02:17:25 +0000 (19:17 -0700)]
Bump version to 0.9.8

11 years agoAllow mdb_env_set_mapsize() on an open environment
Howard Chu [Thu, 29 Aug 2013 02:12:59 +0000 (19:12 -0700)]
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 agoMerge remote-tracking branch 'origin/mdb.master'
Howard Chu [Tue, 27 Aug 2013 13:34:59 +0000 (06:34 -0700)]
Merge remote-tracking branch 'origin/mdb.master'

11 years agoITS#7672 fix mdb_dbi_flags
Howard Chu [Tue, 27 Aug 2013 13:28:30 +0000 (06:28 -0700)]
ITS#7672 fix mdb_dbi_flags

Use a txn instead of env argument. Only return persistent flags.

11 years agoAdd channel binding support
Howard Chu [Tue, 27 Aug 2013 06:31:48 +0000 (23:31 -0700)]
Add channel binding support

Currently only implemented for OpenSSL.
Needs an option to set the criticality flag.

11 years agomdb_page_unspill(): Fix dirty_room in nested txn
Hallvard Furuseth [Sun, 25 Aug 2013 21:59:58 +0000 (23:59 +0200)]
mdb_page_unspill(): Fix dirty_room in nested txn

11 years agoAnother take on spill_pgs and deletes
Howard Chu [Sat, 24 Aug 2013 19:37:45 +0000 (20:37 +0100)]
Another take on spill_pgs and deletes

11 years agoCleanup prev commit
Howard Chu [Sat, 24 Aug 2013 18:54:05 +0000 (11:54 -0700)]
Cleanup prev commit

11 years agoSpeedup deletion from spill_pgs
Howard Chu [Sat, 24 Aug 2013 18:48:37 +0000 (19:48 +0100)]
Speedup deletion from spill_pgs

11 years agoITS#7671 always return the key for a dup val
Howard Chu [Fri, 23 Aug 2013 14:36:07 +0000 (07:36 -0700)]
ITS#7671 always return the key for a dup val

11 years agoITS#7670 Tweak cursor_del0
Howard Chu [Fri, 23 Aug 2013 04:43:29 +0000 (21:43 -0700)]
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.

11 years agomdb_page_spill(): Fix nested txn mt_dirty_room
Hallvard Furuseth [Fri, 23 Aug 2013 05:39:04 +0000 (07:39 +0200)]
mdb_page_spill(): Fix nested txn mt_dirty_room

11 years agoSimplify last commits
Hallvard Furuseth [Fri, 23 Aug 2013 05:37:17 +0000 (07:37 +0200)]
Simplify last commits

11 years agoTweak prev commit
Howard Chu [Fri, 23 Aug 2013 04:29:53 +0000 (21:29 -0700)]
Tweak prev commit

If somehow "need" is larger than the list size, don't
try to fake out the dirty list.

11 years agoLess aggressive page_spill
Howard Chu [Fri, 23 Aug 2013 01:51:48 +0000 (18:51 -0700)]
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.

11 years agoUpdate caveats now that mdb_reader_check exists
Howard Chu [Wed, 21 Aug 2013 00:37:53 +0000 (17:37 -0700)]
Update caveats now that mdb_reader_check exists

11 years agoCleanup comments in prev commit
Howard Chu [Mon, 19 Aug 2013 21:24:00 +0000 (14:24 -0700)]
Cleanup comments in prev commit

11 years agoMore fixes for prev commit
Howard Chu [Mon, 19 Aug 2013 20:54:17 +0000 (13:54 -0700)]
More fixes for prev commit

11 years agoFix 34f832faee9f215dfdb61de52506f2905258b147
Howard Chu [Mon, 19 Aug 2013 11:20:35 +0000 (04:20 -0700)]
Fix 34f832faee9f215dfdb61de52506f2905258b147

Lock ordering issues

11 years agoFix prev commit
Howard Chu [Mon, 19 Aug 2013 04:15:30 +0000 (21:15 -0700)]
Fix prev commit

Hardcoded number of queues was leftover from preliminary
work. Use connection_pool_queues.

11 years agoMultiple queues per threadpool
Howard Chu [Thu, 15 Aug 2013 13:54:35 +0000 (06:54 -0700)]
Multiple queues per threadpool

11 years agoTweak mutex acquisition
Howard Chu [Sat, 17 Aug 2013 01:56:31 +0000 (18:56 -0700)]
Tweak mutex acquisition

Slightly reduce held time.

11 years agoMerge remote-tracking branch 'origin/mdb.master'
Howard Chu [Fri, 16 Aug 2013 13:44:58 +0000 (06:44 -0700)]
Merge remote-tracking branch 'origin/mdb.master'

11 years agoSilence warnings
Howard Chu [Wed, 14 Aug 2013 16:57:25 +0000 (09:57 -0700)]
Silence warnings

11 years agoTweak ITS#7615 fix: Obey strict-aliasing rules.
Hallvard Furuseth [Wed, 14 Aug 2013 13:21:59 +0000 (15:21 +0200)]
Tweak ITS#7615 fix: Obey strict-aliasing rules.

Do not access a long long as an array of longs.

11 years agoMore for 907b9d487753631371dd969b551b63c41cef30fd
Howard Chu [Wed, 14 Aug 2013 10:51:29 +0000 (03:51 -0700)]
More for  907b9d487753631371dd969b551b63c41cef30fd

op.o_extra is only used with threading

11 years agoMerge remote-tracking branch 'origin/mdb.master'
Howard Chu [Tue, 13 Aug 2013 20:35:46 +0000 (13:35 -0700)]
Merge remote-tracking branch 'origin/mdb.master'

11 years agoITS#7664 better fix
Howard Chu [Tue, 13 Aug 2013 20:12:47 +0000 (13:12 -0700)]
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.

11 years agoRevert "ITS#7664 delete lockfile if there is no environment"
Howard Chu [Tue, 13 Aug 2013 20:05:32 +0000 (13:05 -0700)]
Revert "ITS#7664 delete lockfile if there is no environment"

This reverts commit 8725838409512e999d78ea7b60773ce2f94d588f.

11 years agoMerge remote-tracking branch 'origin/mdb.master'
Howard Chu [Tue, 13 Aug 2013 18:36:50 +0000 (11:36 -0700)]
Merge remote-tracking branch 'origin/mdb.master'

11 years agoITS#7664 delete lockfile if there is no environment
Howard Chu [Tue, 13 Aug 2013 18:34:32 +0000 (11:34 -0700)]
ITS#7664 delete lockfile if there is no environment

11 years agoFix prev commit
Howard Chu [Mon, 12 Aug 2013 22:04:51 +0000 (15:04 -0700)]
Fix prev commit

11 years agoFixes for threaded indexer
Howard Chu [Mon, 12 Aug 2013 21:49:41 +0000 (14:49 -0700)]
Fixes for threaded indexer

Works now, but still 2x slower. Leave disabled.

11 years agoMerge remote-tracking branch 'origin/mdb.master'
Howard Chu [Mon, 12 Aug 2013 19:49:24 +0000 (12:49 -0700)]
Merge remote-tracking branch 'origin/mdb.master'

11 years agoFix uninit'd mem ref in mdb_page_split
Howard Chu [Mon, 12 Aug 2013 19:43:42 +0000 (12:43 -0700)]
Fix uninit'd mem ref in mdb_page_split

Don't compare cursors beyond their depth. (detected by valgrind)

11 years agoMerge remote-tracking branch 'origin/mdb.master'
Howard Chu [Mon, 12 Aug 2013 00:27:17 +0000 (17:27 -0700)]
Merge remote-tracking branch 'origin/mdb.master'

11 years agoTweak NODUPDATA flag check
Howard Chu [Mon, 12 Aug 2013 00:25:00 +0000 (17:25 -0700)]
Tweak NODUPDATA flag check

Should allow for the possibility of future flag combos.

11 years agoMerge remote-tracking branch 'origin/mdb.master'
Howard Chu [Mon, 12 Aug 2013 00:18:20 +0000 (17:18 -0700)]
Merge remote-tracking branch 'origin/mdb.master'

11 years agoFix obscure MDB_MULTIPLE bug
Howard Chu [Mon, 12 Aug 2013 00:15:03 +0000 (17:15 -0700)]
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.

11 years agoMerge remote-tracking branch 'origin/mdb.master'
Howard Chu [Sat, 10 Aug 2013 23:20:47 +0000 (16:20 -0700)]
Merge remote-tracking branch 'origin/mdb.master'

11 years agoPoint to mdb.c for docs on macros in Makefile
Howard Chu [Sat, 10 Aug 2013 21:55:51 +0000 (14:55 -0700)]
Point to mdb.c for docs on macros in Makefile

11 years agoMerge remote-tracking branch 'origin/mdb.master'
Howard Chu [Sat, 10 Aug 2013 12:05:57 +0000 (05:05 -0700)]
Merge remote-tracking branch 'origin/mdb.master'

11 years agoITS#7662 cleanup reader txn in mdb_entry_get()
Howard Chu [Sat, 10 Aug 2013 12:05:16 +0000 (05:05 -0700)]
ITS#7662 cleanup reader txn in mdb_entry_get()

11 years agoAvoid compiling debug args with C90 compilers.
Hallvard Furuseth [Sat, 10 Aug 2013 11:50:10 +0000 (13:50 +0200)]
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.

11 years agoRefuse ops on bad txns
Hallvard Furuseth [Sat, 10 Aug 2013 11:23:30 +0000 (13:23 +0200)]
Refuse ops on bad txns

11 years agoReplace EINVALs with generalized MDB_INCOMPATIBLE.
Hallvard Furuseth [Sat, 10 Aug 2013 11:23:30 +0000 (13:23 +0200)]
Replace EINVALs with generalized MDB_INCOMPATIBLE.

Also check xcursor instead of DUPSORT, it's slightly briefer.

11 years agoITS#7656 fix install target
John Hewson [Sat, 10 Aug 2013 11:12:42 +0000 (04:12 -0700)]
ITS#7656 fix install target

11 years agoITS#7660 Add mdb_txn_env to API
Salvador Ortiz [Fri, 9 Aug 2013 16:03:28 +0000 (11:03 -0500)]
ITS#7660 Add mdb_txn_env to API

11 years agomdb_txn_commit(): Always commit if MDB_TXN_SPILLS.
Hallvard Furuseth [Sat, 10 Aug 2013 10:29:45 +0000 (12:29 +0200)]
mdb_txn_commit(): Always commit if MDB_TXN_SPILLS.

Checking dirty_list was insufficient after a spill
with no named databases and no positioned cursors.

11 years agoITS#7661 mdb_dbi_flags(): Allow main DBI
Salvador Ortiz [Sat, 10 Aug 2013 07:42:19 +0000 (09:42 +0200)]
ITS#7661 mdb_dbi_flags(): Allow main DBI

11 years agoITS#7659 add directoryString compatible syntaxes
Howard Chu [Fri, 9 Aug 2013 17:08:09 +0000 (10:08 -0700)]
ITS#7659 add directoryString compatible syntaxes

countryString and telephoneNumber were missing

11 years agoMerge remote-tracking branch 'origin/mdb.master'
Howard Chu [Fri, 9 Aug 2013 16:07:14 +0000 (09:07 -0700)]
Merge remote-tracking branch 'origin/mdb.master'

11 years agomdb_del must ignore data if db not opened with MDB_DUPSORT
Salvador Ortiz [Fri, 9 Aug 2013 15:08:53 +0000 (10:08 -0500)]
mdb_del must ignore data if db not opened with MDB_DUPSORT

11 years agoMerge remote-tracking branch 'origin/mdb.master'
Howard Chu [Fri, 9 Aug 2013 15:46:47 +0000 (08:46 -0700)]
Merge remote-tracking branch 'origin/mdb.master'

11 years agoAdd mdb_env_get_maxkeysize()
Howard Chu [Fri, 9 Aug 2013 11:51:33 +0000 (04:51 -0700)]
Add mdb_env_get_maxkeysize()

11 years agoReplace unpredictable EINVAL error returns.
Hallvard Furuseth [Fri, 9 Aug 2013 11:05:14 +0000 (13:05 +0200)]
Replace unpredictable EINVAL error returns.

Return EINVAL only for simple programmer errors.

11 years agoRe-fix reader-pid code
Hallvard Furuseth [Fri, 9 Aug 2013 10:54:42 +0000 (12:54 +0200)]
Re-fix reader-pid code

11 years agomdb_cursorpages_mark: Mark current txn and no more.
Hallvard Furuseth [Thu, 8 Aug 2013 17:57:52 +0000 (19:57 +0200)]
mdb_cursorpages_mark: Mark current txn and no more.

Ignore parent txn cursors since it is the current txn's dirty_list
which will be flushed. But check the current txn also when clearing,
since cursors can have pages which are dirty in a parent.

Check !mc_xcursor instead of !MDB_DUPSORT.  Equivalent for valid
data, but a bit safer if the sub-DB flags are corrupt.

11 years agoFix mdb_ovpage_free() vs. spill.
Hallvard Furuseth [Thu, 8 Aug 2013 17:57:52 +0000 (19:57 +0200)]
Fix mdb_ovpage_free() vs. spill.

Ensure me_pghead has room before removing from spill/dirty list.
Don't return pages to me_pghead in nested txns, use mt_free_pgs.

11 years agoFix page spilling when MDB_WRITEMAP.
Hallvard Furuseth [Thu, 8 Aug 2013 17:57:51 +0000 (19:57 +0200)]
Fix page spilling when MDB_WRITEMAP.

mdb_page_spill(): Don't binary-search the unsorted dirty_list.
mdb_page_flush(): Don't overwrite unprocessed dirty_list items.

11 years agoSet MDB_TXN_ERROR when inconsistent txn state
Hallvard Furuseth [Thu, 8 Aug 2013 17:57:51 +0000 (19:57 +0200)]
Set MDB_TXN_ERROR when inconsistent txn state

11 years agoFactor out MDB_env.
Hallvard Furuseth [Thu, 8 Aug 2013 17:54:54 +0000 (19:54 +0200)]
Factor out MDB_env.

11 years agoMDB_LOCK_VERSION -> MDB_LOCK_FORMAT.
Hallvard Furuseth [Thu, 8 Aug 2013 17:43:04 +0000 (19:43 +0200)]
MDB_LOCK_VERSION -> MDB_LOCK_FORMAT.

Pid locking needs a different lockfile-version: MDB_env's with and
without pid locking must not coexist, they can sabotage each other.
Store MDB_LOCK_FORMAT = (version | "use locking" flag) instead.

11 years agoFix mdb_reader_pid().
Hallvard Furuseth [Thu, 8 Aug 2013 17:43:04 +0000 (19:43 +0200)]
Fix mdb_reader_pid().

Treat unexpected errors as "don't know".  Invert Pidcheck return
value, so nonzero including error codes = "the process may exist".

On Windows: Catch exited but still existing processes.  Handle
undefined PROCESS_QUERY_LIMITED_INFORMATION.
On Unix: don't trust F_GETLK error to leave the input alone,
the fcntl() doc seems unclear.

11 years agoUse proper printf format on Windows
Howard Chu [Wed, 7 Aug 2013 19:42:46 +0000 (12:42 -0700)]
Use proper printf format on Windows

11 years agoITS#7645 more for TLSProtocolMin
Howard Chu [Wed, 7 Aug 2013 18:08:09 +0000 (11:08 -0700)]
ITS#7645 more for TLSProtocolMin

11 years agoSilence warnings
Hallvard Furuseth [Mon, 5 Aug 2013 08:01:39 +0000 (10:01 +0200)]
Silence warnings

11 years agoTweak comments
Hallvard Furuseth [Mon, 5 Aug 2013 07:55:57 +0000 (09:55 +0200)]
Tweak comments

11 years agoClarify doc: mdb_copy, nested txns, mdb_drop().
Hallvard Furuseth [Mon, 5 Aug 2013 07:55:48 +0000 (09:55 +0200)]
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 agoITS#7591 fix back-meta missing result msgs
Howard Chu [Fri, 2 Aug 2013 11:44:57 +0000 (04:44 -0700)]
ITS#7591 fix back-meta missing result msgs

11 years agoITS#7654 fix implicit declaration warnings
Howard Chu [Fri, 2 Aug 2013 11:03:05 +0000 (04:03 -0700)]
ITS#7654 fix implicit declaration warnings

11 years agoMerge remote-tracking branch 'origin/mdb.master'
Howard Chu [Wed, 31 Jul 2013 15:14:39 +0000 (08:14 -0700)]
Merge remote-tracking branch 'origin/mdb.master'

11 years agoTweak prev commit again
Howard Chu [Wed, 31 Jul 2013 15:09:40 +0000 (08:09 -0700)]
Tweak prev commit again

Make sure errors are propagated from init_meta

11 years agoMerge remote-tracking branch 'origin/mdb.master'
Howard Chu [Tue, 30 Jul 2013 20:48:01 +0000 (13:48 -0700)]
Merge remote-tracking branch 'origin/mdb.master'

11 years agoFix typo in Win32 branch
Howard Chu [Tue, 30 Jul 2013 20:44:28 +0000 (13:44 -0700)]
Fix typo in Win32 branch

11 years agoMerge remote-tracking branch 'origin/mdb.master'
Howard Chu [Tue, 30 Jul 2013 19:51:54 +0000 (12:51 -0700)]
Merge remote-tracking branch 'origin/mdb.master'

11 years agoCleanup prev commit
Howard Chu [Tue, 30 Jul 2013 19:47:12 +0000 (12:47 -0700)]
Cleanup prev commit

Loop on copyfd meta write, since pipes may return after partial write.

11 years agoITS#7652 fix I/O error checks
Howard Chu [Tue, 30 Jul 2013 17:22:12 +0000 (10:22 -0700)]
ITS#7652 fix I/O error checks

partial revert of d6d2638acc245116b8f091ac425b6700d06c4713 and
26a25df5fcc2fcddae6597a61c1b867fc27c568b

The original code was already tested and working correctly.

11 years agoITS#7645 use ldap_pvt_tls_config for TLSProtocolMin
Howard Chu [Mon, 29 Jul 2013 14:04:03 +0000 (07:04 -0700)]
ITS#7645 use ldap_pvt_tls_config for TLSProtocolMin

11 years agoITS#7645 more OpenSSL TLS versions
Philip Guenther [Mon, 29 Jul 2013 14:01:15 +0000 (07:01 -0700)]
ITS#7645 more OpenSSL TLS versions

11 years agoITS#7645, #5655 TLSProtocolMin docs
Howard Chu [Mon, 29 Jul 2013 13:50:18 +0000 (06:50 -0700)]
ITS#7645, #5655 TLSProtocolMin docs

11 years agoITS#5655 cleanup
Howard Chu [Mon, 29 Jul 2013 13:40:02 +0000 (06:40 -0700)]
ITS#5655 cleanup

11 years agoITS#5655 TLS_PROTOCOL_MIN setting
Philip Guenther [Mon, 29 Jul 2013 13:38:27 +0000 (06:38 -0700)]
ITS#5655 TLS_PROTOCOL_MIN setting

11 years agoMerge remote-tracking branch 'origin/mdb.master'
Howard Chu [Mon, 29 Jul 2013 00:13:04 +0000 (17:13 -0700)]
Merge remote-tracking branch 'origin/mdb.master'

11 years agoTweak mdb_envinfo numreaders
Howard Chu [Mon, 29 Jul 2013 00:02:51 +0000 (17:02 -0700)]
Tweak mdb_envinfo numreaders

Return the actual shared reader count when it exists, not
just the current process env's reader count.

11 years agoITS#7641 don't muck with controls if slapi doesn't use them
Timothy Pearson [Fri, 26 Jul 2013 20:15:58 +0000 (13:15 -0700)]
ITS#7641 don't muck with controls if slapi doesn't use them

11 years agoITS#7615 use shorter names for semaphores
Howard Chu [Fri, 26 Jul 2013 17:19:54 +0000 (10:19 -0700)]
ITS#7615 use shorter names for semaphores

NetBSD can only handle up to 14 chars, we were using 21. Now
we encode to 15, and for NetBSD truncate the last char.