]>
git.sur5r.net Git - openldap/log
Ralf Haferkamp [Thu, 20 Oct 2011 09:07:01 +0000 (11:07 +0200)]
ITS#7066 Reworked fix
Seems simpler this way. No need for a back-config specific
bi_access_allowed() handler.
Ralf Haferkamp [Wed, 19 Oct 2011 09:46:00 +0000 (11:46 +0200)]
plugged mem-leak introduced by last commit
more for ITS#7066
Howard Chu [Wed, 19 Oct 2011 10:52:07 +0000 (03:52 -0700)]
This ought to have been here a long time ago
Ralf Haferkamp [Tue, 18 Oct 2011 15:08:05 +0000 (17:08 +0200)]
ITS#7066 reworked default deny ACL for cn=config
Dynamically adding ACL for cn=config didn't work correctly, when no
ACLs where present for that database upon startup. Delete the last
ACL from the DB could also lead to unexpected results.
Howard Chu [Sat, 15 Oct 2011 05:05:37 +0000 (22:05 -0700)]
Merge remote branch 'origin/mdb.master'
Howard Chu [Sat, 15 Oct 2011 05:03:46 +0000 (22:03 -0700)]
Android/ARM portability
2-byte alignment isn't good enough for subpages
Howard Chu [Thu, 13 Oct 2011 02:19:52 +0000 (19:19 -0700)]
Define S_IWRITE if needed
Howard Chu [Thu, 13 Oct 2011 02:18:05 +0000 (19:18 -0700)]
Android defines wctomb but doesn't provide it
Howard Chu [Fri, 7 Oct 2011 02:15:43 +0000 (19:15 -0700)]
Merge branch 'mdb.master' of ssh://git-master.openldap.org/~git/git/openldap
Howard Chu [Fri, 7 Oct 2011 02:15:10 +0000 (19:15 -0700)]
More for cursor reuse
Howard Chu [Fri, 7 Oct 2011 02:14:22 +0000 (19:14 -0700)]
Keep some dn2i/id2e cursors open longer
So they can be reused, and avoid unnecessary page_searches
Howard Chu [Fri, 7 Oct 2011 01:53:07 +0000 (18:53 -0700)]
Fix page_split with MDB_RESERVE
Howard Chu [Thu, 6 Oct 2011 23:11:25 +0000 (16:11 -0700)]
Fix subcursor initialization
Howard Chu [Thu, 6 Oct 2011 23:10:47 +0000 (16:10 -0700)]
Additional tweaks for double-threaded slapadd
Howard Chu [Thu, 6 Oct 2011 22:22:40 +0000 (15:22 -0700)]
ITS#7059 replace previous patch
Bug was caused by postalAddressNormalize sending 0-length values
to UTF8StringNormalize.
Howard Chu [Thu, 6 Oct 2011 21:05:31 +0000 (14:05 -0700)]
Fix UTF8StringNormalize overrun on zero-length string
Detected by valgrind
Howard Chu [Wed, 5 Oct 2011 06:45:33 +0000 (23:45 -0700)]
Additional change for prev commit
Howard Chu [Wed, 5 Oct 2011 02:19:25 +0000 (19:19 -0700)]
Use a thread for LDIF parsing in slapadd -q
Howard Chu [Tue, 4 Oct 2011 09:22:01 +0000 (02:22 -0700)]
Merge remote branch 'origin/mdb.master'
Howard Chu [Tue, 4 Oct 2011 09:18:09 +0000 (02:18 -0700)]
Turn off tool IDL caching
Well, just like in back-bdb in 2005, it only slowed things down
on larger LDIFs.
Howard Chu [Tue, 4 Oct 2011 01:02:17 +0000 (18:02 -0700)]
Don't use Append mode when splits are caused by sub-page inserts
Sub-pages need room to grow...
Howard Chu [Mon, 3 Oct 2011 19:40:53 +0000 (12:40 -0700)]
Fix freelist bug on page split
NULL out env->pghead before writing it, so that its pages can't be used
to satisfy the write.
Howard Chu [Mon, 3 Oct 2011 18:30:10 +0000 (11:30 -0700)]
Merge remote branch 'origin/mdb.master'
Howard Chu [Mon, 3 Oct 2011 18:29:04 +0000 (11:29 -0700)]
Tweak tool IDL cache, use MDB_MULTIPLE
Howard Chu [Mon, 3 Oct 2011 18:25:31 +0000 (11:25 -0700)]
Add rudimentary MDB_MULTIPLE support for puts
Only for DUPFIXED DBs. Still could do better.
Howard Chu [Mon, 3 Oct 2011 04:29:21 +0000 (21:29 -0700)]
Use MDB_APPEND mode where possible
Howard Chu [Mon, 3 Oct 2011 04:28:55 +0000 (21:28 -0700)]
Merge remote branch 'origin/mdb.master'
Howard Chu [Mon, 3 Oct 2011 04:27:07 +0000 (21:27 -0700)]
Add MDB_APPEND to avoid splitting full pages
Howard Chu [Mon, 3 Oct 2011 02:52:12 +0000 (19:52 -0700)]
Howard Chu [Mon, 3 Oct 2011 02:31:18 +0000 (19:31 -0700)]
Use IDL caching in tool/quick mode
Howard Chu [Mon, 3 Oct 2011 02:36:57 +0000 (19:36 -0700)]
Merge branch 'mdb.master' of ssh://git-master.openldap.org/~git/git/openldap
Howard Chu [Mon, 3 Oct 2011 02:27:31 +0000 (19:27 -0700)]
Add mdb_cursor_txn() and mdb_cursor_dbi() for querying the cursor
Howard Chu [Sun, 2 Oct 2011 18:14:53 +0000 (11:14 -0700)]
Merge branch 'mdb.master' of ssh://git-master.openldap.org/~git/git/openldap
Howard Chu [Sun, 2 Oct 2011 17:06:06 +0000 (10:06 -0700)]
Use MDB_RESERVE for id2entry_put
Howard Chu [Sun, 2 Oct 2011 17:02:30 +0000 (10:02 -0700)]
Add MDB_RESERVE mode
When putting a record, just make space for the data, don't copy it.
(Not compatible with MDB_DUPSORT, since the actual data is needed
to determine the insert location.)
Howard Chu [Sat, 1 Oct 2011 05:15:05 +0000 (22:15 -0700)]
Tweak cursor adjustment code
Skip the original cursor that made the change
Howard Chu [Fri, 30 Sep 2011 10:34:03 +0000 (03:34 -0700)]
ITS#6979 avoid bash-ism
Howard Chu [Fri, 30 Sep 2011 10:27:19 +0000 (03:27 -0700)]
ITS#7006 fix MozNSS wildcard cert match
Rich Megginson [Tue, 6 Sep 2011 18:59:26 +0000 (12:59 -0600)]
ITS#7034 use mutex for connection handshake when using PEM nss
PEM nss is not thread safe when establishing the initial connection
using SSL_ForceHandshake. Create a new mutex - tlsm_pem_mutex - to
protect this function call.
The call to SSL_ConfigServerSessionIDCache() is not thread-safe - move it
to the init section and protect it with the init mutex.
Howard Chu [Fri, 30 Sep 2011 10:04:10 +0000 (03:04 -0700)]
ITS#7040 don't complain about other server's CSNs
Only worry if consumer has newer state for our SID. Fixes breakage
caused by ITS#6606.
Howard Chu [Fri, 30 Sep 2011 09:27:04 +0000 (02:27 -0700)]
ITS#7037 restart consumer on Persist errors
Consumer should never get NO_SUCH_OBJECT for an Add to the underlying DB
during Persist phase.
Howard Chu [Fri, 30 Sep 2011 09:10:37 +0000 (02:10 -0700)]
ITS#7037 fix syncrepl_add_glue for empty suffix
Howard Chu [Fri, 30 Sep 2011 07:41:13 +0000 (00:41 -0700)]
ITS#7051 fix GNUtls cert dn parse
Howard Chu [Fri, 30 Sep 2011 07:09:01 +0000 (00:09 -0700)]
ITS#7052 syncrepl deletes need a non-empty CSN
Must not let the underlying DB generate its own.
Howard Chu [Fri, 30 Sep 2011 04:07:07 +0000 (21:07 -0700)]
Make sure mdb_open actually got a sub-db record
Howard Chu [Fri, 23 Sep 2011 04:46:12 +0000 (21:46 -0700)]
Doc for the MDB_NOSUBDIR env option
Howard Chu [Fri, 23 Sep 2011 01:05:06 +0000 (18:05 -0700)]
Add MDB_NOSUBDIR option
Create the data file using exactly the given pathname, and
the lock file using a suffix on the data file name.
Howard Chu [Thu, 22 Sep 2011 11:34:40 +0000 (04:34 -0700)]
Reader table notes
Howard Chu [Thu, 22 Sep 2011 00:21:48 +0000 (17:21 -0700)]
assert cleanup
Howard Chu [Wed, 21 Sep 2011 23:37:29 +0000 (16:37 -0700)]
txn_abort/commit free all their cursors now.
Howard Chu [Wed, 21 Sep 2011 23:06:52 +0000 (16:06 -0700)]
Only free malloc'd cursors
Howard Chu [Wed, 21 Sep 2011 22:59:08 +0000 (15:59 -0700)]
Updated for mdb_txn_begin API change.
Nested txn stuff which we don't use.
Howard Chu [Wed, 21 Sep 2011 22:58:55 +0000 (15:58 -0700)]
Merge remote branch 'origin/mdb.master'
Howard Chu [Wed, 21 Sep 2011 21:14:11 +0000 (14:14 -0700)]
Track changes to all cursors.
For any change to a page or node, update all other cursors pointing
at the same page (or node). Cursors are now stored in a linked list
off their owning transaction. Cursors are all closed when the transaction
ends. Cursors in parent transactions are updated when their child
transaction commits.
Howard Chu [Tue, 20 Sep 2011 19:57:05 +0000 (12:57 -0700)]
Add support for nested transactions.
Hallvard Furuseth [Tue, 13 Sep 2011 07:39:28 +0000 (09:39 +0200)]
back-bdb/back-mdb IDL cleanup.
Parenthesize macros. Microoptimize IDL search. Use RANGE_<FIRST/LAST>
when IDL is known to be a range.
Hallvard Furuseth [Sun, 18 Sep 2011 19:49:25 +0000 (21:49 +0200)]
Cleanup ISO C compatibility for recent commits
Hallvard Furuseth [Sun, 18 Sep 2011 20:37:45 +0000 (22:37 +0200)]
More libmdb vs back-mdb C type tweaks.
Do not access a size_t via an unsigned long pointer, an MDB_val via a
berval pointer, or the inverse. Instead copy into the proper data types.
Hallvard Furuseth [Mon, 19 Sep 2011 08:30:30 +0000 (10:30 +0200)]
Merge branch 'mdb.master'
Hallvard Furuseth [Tue, 13 Sep 2011 07:39:28 +0000 (09:39 +0200)]
libmdb IDL cleanup.
Microoptimize IDL search.
Use RANGE_<FIRST/LAST> when IDL is known to be a range.
Howard Chu [Mon, 19 Sep 2011 01:26:54 +0000 (18:26 -0700)]
Additional fix for prev commit
Howard Chu [Mon, 19 Sep 2011 01:14:05 +0000 (18:14 -0700)]
Merge branch 'mdb.master' of ssh://git-master.openldap.org/~git/git/openldap
Howard Chu [Mon, 19 Sep 2011 01:13:23 +0000 (18:13 -0700)]
Make sure 2 subpages fit in one real page
Howard Chu [Mon, 19 Sep 2011 00:08:40 +0000 (17:08 -0700)]
Merge remote branch 'origin/mdb.master'
Howard Chu [Mon, 19 Sep 2011 00:07:47 +0000 (17:07 -0700)]
Fix last delete from a subpage
Howard Chu [Sun, 18 Sep 2011 23:39:18 +0000 (16:39 -0700)]
Fix
09006ccec7928c9cf53bca6abe741e8d4d466c98
Check for stale DBs was in the wrong place.
Howard Chu [Sun, 18 Sep 2011 21:47:41 +0000 (14:47 -0700)]
Fix prev commit
Don't truncate all indices if specific indices were given.
Howard Chu [Sun, 18 Sep 2011 21:28:36 +0000 (14:28 -0700)]
Support index truncation
Howard Chu [Sun, 18 Sep 2011 21:28:20 +0000 (14:28 -0700)]
Merge branch 'mdb.master' of ssh://git-master.openldap.org/~git/git/openldap
Howard Chu [Sun, 18 Sep 2011 21:18:27 +0000 (14:18 -0700)]
Fix mdb_drop() if not deleting the DB record
Howard Chu [Sun, 18 Sep 2011 20:28:08 +0000 (13:28 -0700)]
Fix typo, minor cleanup
Howard Chu [Sun, 18 Sep 2011 20:25:38 +0000 (13:25 -0700)]
New mdb_close() signature
Howard Chu [Sun, 18 Sep 2011 20:25:09 +0000 (13:25 -0700)]
Merge remote branch 'origin/mdb.master'
Howard Chu [Sun, 18 Sep 2011 20:24:24 +0000 (13:24 -0700)]
Support single parameter substitution in filter
Howard Chu [Sun, 18 Sep 2011 19:37:02 +0000 (12:37 -0700)]
Add mdb_drop() for deleting a DB
Allow MIDLs to grow arbitrarily, to allow unlimited number of
pages to be freed in one txn.
Howard Chu [Sun, 18 Sep 2011 17:38:08 +0000 (10:38 -0700)]
API change, consistency check
mdb_close() takes an env, not a txn.
Also, add check for stale DB records (in case some other process
wrote to the DB last).
Howard Chu [Sat, 17 Sep 2011 11:02:52 +0000 (04:02 -0700)]
Merge branch 'mdb.master' of ssh://git-master.openldap.org/~git/git/openldap
Howard Chu [Fri, 16 Sep 2011 23:51:32 +0000 (16:51 -0700)]
New sorted-dup subpage support
Instead of converting directly to a subDB when the first duplicate
item is seen for a key, convert to a subpage instead. Allow the
subpage to grow up to the overflow limit, then convert to a subDB.
This saves a significant amount of space in a typical slapd index
database.
Currently we don't convert back to the smaller form if items are
later deleted. Probably could do that with some hysteresis, e.g.,
convert back from subDB to subpage when the size drops below
(overflow limit/2). Maybe later.
Howard Chu [Sat, 17 Sep 2011 10:08:02 +0000 (03:08 -0700)]
deltasync test tweaks
Check replication success before stopping consumer.
Set retry/interval to make sure consumer reconnects after provider restart.
Howard Chu [Thu, 15 Sep 2011 17:37:13 +0000 (10:37 -0700)]
Merge branch 'mdb.master' of ssh://git-master.openldap.org/~git/git/openldap
Howard Chu [Thu, 15 Sep 2011 17:36:15 +0000 (10:36 -0700)]
Use FNV-1A hash to generate unique mutex names
For Windows and MacOSX
Howard Chu [Thu, 15 Sep 2011 03:34:27 +0000 (20:34 -0700)]
Merge remote branch 'origin/mdb.master'
Howard Chu [Thu, 15 Sep 2011 03:33:09 +0000 (20:33 -0700)]
Doc tweak - txn flags
Howard Chu [Thu, 15 Sep 2011 03:30:26 +0000 (20:30 -0700)]
MacOSX semaphore names are limited to 31 chars
Including the terminating NUL. Good job documenting that, guys.
Howard Chu [Wed, 14 Sep 2011 18:46:40 +0000 (11:46 -0700)]
Merge remote branch 'origin/mdb.master'
Howard Chu [Wed, 14 Sep 2011 18:31:27 +0000 (11:31 -0700)]
Add MacOSX support
mmap() with FIXEDMAP fails, otherwise things work.
Howard Chu [Wed, 14 Sep 2011 17:14:02 +0000 (10:14 -0700)]
Fix entry_alloc with no attrs
Howard Chu [Wed, 14 Sep 2011 16:54:58 +0000 (09:54 -0700)]
Fix onelevel search from last commit
Howard Chu [Wed, 14 Sep 2011 08:46:08 +0000 (01:46 -0700)]
Minor doc cleanup
Howard Chu [Wed, 14 Sep 2011 08:08:01 +0000 (01:08 -0700)]
More docs
Howard Chu [Wed, 14 Sep 2011 06:36:41 +0000 (23:36 -0700)]
Namespace cleanup
Howard Chu [Tue, 13 Sep 2011 23:58:38 +0000 (16:58 -0700)]
More search optimization
Tighten up entry_alloc/entry_decode
Track parent nodes in idscopes
Howard Chu [Tue, 13 Sep 2011 22:19:04 +0000 (15:19 -0700)]
Tentative speedup - use plain ints for entry_encode/decode
Keep entries word-aligned. Yields ~10% speedup, but also 10% more space used.
May revert this if the space cost is unacceptable.
Howard Chu [Tue, 13 Sep 2011 22:24:33 +0000 (15:24 -0700)]
Merge remote branch 'origin/mdb.master'
Howard Chu [Tue, 13 Sep 2011 20:34:22 +0000 (13:34 -0700)]
Tweak search_node inner loop to avoid LEAF2 checks
Howard Chu [Tue, 13 Sep 2011 18:25:17 +0000 (11:25 -0700)]
cursor_set/search_node tweaks, use intcmp when possible
Howard Chu [Tue, 13 Sep 2011 08:28:37 +0000 (01:28 -0700)]
mdb_db_close() should not force env_sync in quick mode
Howard Chu [Mon, 12 Sep 2011 18:41:04 +0000 (11:41 -0700)]
Resolve MDB/HDB monitor OID clashes
Howard Chu [Mon, 12 Sep 2011 18:05:38 +0000 (11:05 -0700)]
Just use memcpy since we know it's non-overlapping
Hallvard Furuseth [Mon, 12 Sep 2011 13:58:43 +0000 (15:58 +0200)]
Tweak back-mdb integer types to match libmdb.
Also do not cast between berval and MDB_val. That breaks when
sizeof(berval.bv_len) != sizeof(MDB_val.mv_size).