]>
git.sur5r.net Git - openldap/log
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 [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).
Howard Chu [Mon, 12 Sep 2011 08:11:56 +0000 (01:11 -0700)]
Minor tweaks, update relfunc behavior
Howard Chu [Mon, 12 Sep 2011 06:58:50 +0000 (23:58 -0700)]
Merge remote branch 'origin/mdb.master'
Howard Chu [Mon, 12 Sep 2011 06:57:17 +0000 (23:57 -0700)]
More cursor_init cleanup
Howard Chu [Mon, 12 Sep 2011 06:13:36 +0000 (23:13 -0700)]
One more sub-cursor fix
Howard Chu [Mon, 12 Sep 2011 05:23:35 +0000 (22:23 -0700)]
Merge branch 'mdb.master' of ssh://git-master.openldap.org/~git/git/openldap into mdb.master
Howard Chu [Mon, 12 Sep 2011 03:54:32 +0000 (20:54 -0700)]
Fix
2e3bc39fa94f21d692d8e94183f57aef9122c487
Various mistakes when converting from previous data structures.
Add a few more debug asserts/sanity checks.
Split all "if (foo) return" constructs to separate lines to allow
easier breakpoint setting.
Add mtest6 for checking mdb_split() behavior. This needs to be
expanded to check rebalance/merge cases too.
Hallvard Furuseth [Sun, 11 Sep 2011 11:00:52 +0000 (13:00 +0200)]
Fix mdb debug formats
Hallvard Furuseth [Sun, 11 Sep 2011 09:08:40 +0000 (11:08 +0200)]
Restore missing LAZY_LOCKS semicolon.
Lost in C90 compat commit
c5dad7a6d0eb1b3597beda18b38fe92820df0d30 .
Hallvard Furuseth [Sat, 10 Sep 2011 08:11:56 +0000 (10:11 +0200)]
mdb integer type cleanup: Use MDB_dbi consistently.
This changes the prototype of mdb_env_set_maxdbs().
Hallvard Furuseth [Sat, 10 Sep 2011 18:01:07 +0000 (20:01 +0200)]
Drop ULONG in favor of size_t.
Hallvard Furuseth [Sat, 10 Sep 2011 08:11:56 +0000 (10:11 +0200)]
Add mdb.c:txnid_t for readability.
Maybe later we'll test txnid wraparound with it defined to ushort.
Hallvard Furuseth [Sat, 10 Sep 2011 08:11:56 +0000 (10:11 +0200)]
mdb type cleanup: Consistent reader count types.
Use unsigned int for reader counts/max limits, that's the smallest
change. Don't need uint32_t when mdb_env_set_maxreaders() takes less.
Change prototypes of mdb_env_set_maxreaders,mdb_env_get_maxreaders().
Check the mdb_env_set_maxreaders() argument.
Hallvard Furuseth [Sat, 10 Sep 2011 08:11:55 +0000 (10:11 +0200)]
explain mdl_midl_sort() istack size
Hallvard Furuseth [Sat, 10 Sep 2011 08:11:55 +0000 (10:11 +0200)]
Fix memn(r)cmp of key sizes > INT_MAX. Simplify.
Hallvard Furuseth [Sat, 10 Sep 2011 08:11:55 +0000 (10:11 +0200)]
Check some mdb integer type assumptions
Hallvard Furuseth [Sat, 10 Sep 2011 08:11:55 +0000 (10:11 +0200)]
Put MDB_node.<mn_lo,mn_hi> in host byte order.
Hallvard Furuseth [Sat, 10 Sep 2011 08:11:55 +0000 (10:11 +0200)]
C90 compatibility cleanup in mdb.
Fix void* pointer arithmetic in cintcmp().
Fix invalid ';'s in declarations after possibly-empty macros.
Howard Chu [Sat, 10 Sep 2011 08:12:50 +0000 (01:12 -0700)]
Fix - slapcat doesn't set op->o_hdr for tmpmemctx
Hallvard Furuseth [Sat, 10 Sep 2011 08:11:55 +0000 (10:11 +0200)]
Cleanup mdb macros.
Parenthesize. Rename GetPageSize -> GET_PAGESIZE since it does not
behave like a function (it has a non-pointer output argument).
Hallvard Furuseth [Sat, 10 Sep 2011 08:11:55 +0000 (10:11 +0200)]
libmdb/.gitignore += test[45], Doxygen output
Howard Chu [Sat, 10 Sep 2011 05:29:37 +0000 (22:29 -0700)]
Merge branch 'mdb.master' of ssh://git-master.openldap.org/~git/git/openldap
Howard Chu [Sat, 10 Sep 2011 05:00:34 +0000 (22:00 -0700)]
Fix out-of-order slapadd
Howard Chu [Sat, 10 Sep 2011 04:43:22 +0000 (21:43 -0700)]
If put(NOOVERWRITE) exists, return existing data
Howard Chu [Sat, 10 Sep 2011 02:53:56 +0000 (19:53 -0700)]
Fix bogus error codes
Howard Chu [Fri, 9 Sep 2011 10:52:12 +0000 (03:52 -0700)]
Minor typos, additional clarification
Howard Chu [Fri, 9 Sep 2011 07:10:48 +0000 (00:10 -0700)]
Keep cursor open for id2entry
Howard Chu [Fri, 9 Sep 2011 06:41:06 +0000 (23:41 -0700)]
Add a few NULL checks to defend against dumb API checkers.
Unfortunately automated checkers don't seem to read the documentation
for how APIs are expected to be used, and the C declaration syntax
isn't expressive enough to encode the documented usage.
Howard Chu [Fri, 9 Sep 2011 05:07:04 +0000 (22:07 -0700)]
Use tmpmem-based entries
Howard Chu [Fri, 9 Sep 2011 05:02:59 +0000 (22:02 -0700)]
Drop referral.c
Howard Chu [Fri, 9 Sep 2011 04:42:58 +0000 (21:42 -0700)]
Merge branch 'master' of ssh://git-master.openldap.org/~git/git/openldap
Howard Chu [Fri, 9 Sep 2011 04:39:45 +0000 (21:39 -0700)]
Add Valgrind mempool support.
Compile with -DUSE_VALGRIND. It will attempt to keep Valgrind
informed of our memory allocations. Frees are trickier since they
may be deferred indefinitely.
Howard Chu [Fri, 9 Sep 2011 03:18:29 +0000 (20:18 -0700)]
Partial revert, fix MDB_page definition
Howard Chu [Fri, 9 Sep 2011 00:13:51 +0000 (17:13 -0700)]
More docs
Pierangelo Masarati [Thu, 8 Sep 2011 23:08:05 +0000 (01:08 +0200)]
silence warning
Pierangelo Masarati [Thu, 8 Sep 2011 23:07:17 +0000 (01:07 +0200)]
import ITS#6925 patch; fix peeraddr variable name clash in LDAP_CONNECTIONLESS code; fix scope of addr[] when inet_ntop(3) is used
Howard Chu [Thu, 8 Sep 2011 21:35:17 +0000 (14:35 -0700)]
Merge remote branch 'origin/mdb.master'
Howard Chu [Thu, 8 Sep 2011 20:11:33 +0000 (13:11 -0700)]
More docs
Pierangelo Masarati [Thu, 8 Sep 2011 21:31:21 +0000 (23:31 +0200)]
fix uninit'ed vars (ITS#7039)
Quanah Gibson-Mount [Thu, 8 Sep 2011 21:06:30 +0000 (14:06 -0700)]
Merge branch 'master' of ssh://git-master.openldap.org/~git/git/openldap
Quanah Gibson-Mount [Thu, 8 Sep 2011 21:05:56 +0000 (14:05 -0700)]
Fix loglevel <integer> to be loglevel <level> to match reality (and olcLogLevel description too!)
Howard Chu [Thu, 8 Sep 2011 20:10:17 +0000 (13:10 -0700)]
Speedup cintcmp
Now that we know we're always 2-byte aligned...
Howard Chu [Thu, 8 Sep 2011 17:31:04 +0000 (10:31 -0700)]
Howard Chu [Thu, 8 Sep 2011 17:11:30 +0000 (10:11 -0700)]
Merge remote branch 'origin/mdb.master'
Howard Chu [Thu, 8 Sep 2011 17:08:21 +0000 (10:08 -0700)]
Fix previous commit
Howard Chu [Thu, 8 Sep 2011 06:58:29 +0000 (23:58 -0700)]
Merge remote branch 'origin/mdb.master'
Howard Chu [Thu, 8 Sep 2011 06:57:50 +0000 (23:57 -0700)]
Merge branch 'mdb.cursor' into mdb.master
Howard Chu [Thu, 8 Sep 2011 06:49:41 +0000 (23:49 -0700)]
Print loop counter on failure
Howard Chu [Thu, 8 Sep 2011 06:10:19 +0000 (23:10 -0700)]
Forgot to commit this
Howard Chu [Thu, 8 Sep 2011 06:10:19 +0000 (23:10 -0700)]
Forgot to commit this
Howard Chu [Wed, 7 Sep 2011 09:04:40 +0000 (02:04 -0700)]
Further cursor-based restructuring
Get rid of all of the redundant MDB_*page structs and other cruft.
Howard Chu [Wed, 7 Sep 2011 06:37:37 +0000 (23:37 -0700)]
Cleanup unused code
Howard Chu [Wed, 7 Sep 2011 06:22:40 +0000 (23:22 -0700)]
Merge branch 'mdb.master' of ssh://git-master.openldap.org/~git/git/openldap
Howard Chu [Wed, 7 Sep 2011 06:16:45 +0000 (23:16 -0700)]
Fix mdb_move_node again
Howard Chu [Wed, 7 Sep 2011 04:13:49 +0000 (21:13 -0700)]
ITS#7035 don't loop forever in wait4msg
Howard Chu [Wed, 7 Sep 2011 00:23:41 +0000 (17:23 -0700)]
More error msgs
Howard Chu [Tue, 6 Sep 2011 22:24:00 +0000 (15:24 -0700)]
Merge branch 'mdb.master' of /home/hyc/OD/mdb
Howard Chu [Tue, 6 Sep 2011 22:22:53 +0000 (15:22 -0700)]
Fix search_node, add cintcmp
Howard Chu [Tue, 6 Sep 2011 21:04:38 +0000 (14:04 -0700)]
Fix
6c8e4f2 for empty suffixes
Howard Chu [Tue, 6 Sep 2011 20:55:02 +0000 (13:55 -0700)]
Merge branch 'mdb.master' of /home/hyc/OD/mdb
Howard Chu [Tue, 6 Sep 2011 19:54:09 +0000 (12:54 -0700)]
Guarantee nodes are 2-byte aligned
Also fix xcursor_init1 md_dirty flag
Also another mdb_cmp refactoring fix
Howard Chu [Tue, 6 Sep 2011 12:17:24 +0000 (05:17 -0700)]
Change MDB_node to depend on 2-byte alignment
Howard Chu [Tue, 6 Sep 2011 09:21:19 +0000 (02:21 -0700)]
More search optimizations
Howard Chu [Tue, 6 Sep 2011 02:49:35 +0000 (19:49 -0700)]
Use AD-indexes
Howard Chu [Tue, 6 Sep 2011 00:43:15 +0000 (17:43 -0700)]
Add AttributeDescription counter
Howard Chu [Mon, 5 Sep 2011 23:56:02 +0000 (16:56 -0700)]
Merge remote branch 'mdb/mdb.master'
Howard Chu [Mon, 5 Sep 2011 23:54:39 +0000 (16:54 -0700)]
Fix for mdb_cmp refactoring
Howard Chu [Mon, 5 Sep 2011 23:20:31 +0000 (16:20 -0700)]
More merge fix
Howard Chu [Mon, 5 Sep 2011 23:15:36 +0000 (16:15 -0700)]
Fix bad merge
Howard Chu [Mon, 5 Sep 2011 22:23:08 +0000 (15:23 -0700)]
Debug helper for index
Howard Chu [Mon, 5 Sep 2011 22:19:41 +0000 (15:19 -0700)]
Merge remote branch 'mdb/mdb.master'
Howard Chu [Mon, 5 Sep 2011 21:22:46 +0000 (14:22 -0700)]
Minor cleanup
Hallvard Furuseth [Mon, 5 Sep 2011 19:10:04 +0000 (21:10 +0200)]
back-mdb/Makefile.in += variable MDB_SUBDIR.
For compiling against a checkout of the stand-alone libmdb,
which has a branch 'mdb.master' with its own root:
git clone --branch=mdb.master <openldap_repo_dir> mdb
set_mdb="MDB_SUBDIR=`pwd`/mdb/libraries/libmdb"
... maybe modify mdb repository for testing ...
cd <openldap_repo_dir>; make $set_mdb
Howard Chu [Mon, 5 Sep 2011 10:52:38 +0000 (03:52 -0700)]
Fix from key_change consolidation
Howard Chu [Mon, 5 Sep 2011 09:36:24 +0000 (02:36 -0700)]
Use mdb_midl_append/sort instead of _insert
Howard Chu [Mon, 5 Sep 2011 09:36:24 +0000 (02:36 -0700)]
Use mdb_midl_append/sort instead of _insert
Howard Chu [Mon, 5 Sep 2011 08:23:35 +0000 (01:23 -0700)]
Cursor updates
Howard Chu [Mon, 5 Sep 2011 07:46:32 +0000 (00:46 -0700)]
mdb_cmp refactoring
Howard Chu [Sun, 4 Sep 2011 00:24:39 +0000 (17:24 -0700)]
Reimplement basic ops as cursor ops
Howard Chu [Sat, 3 Sep 2011 22:19:24 +0000 (15:19 -0700)]
Add MDB_{FIRST,LAST}_DUP for cursor_get
Howard Chu [Fri, 2 Sep 2011 10:09:05 +0000 (03:09 -0700)]
Cleanup midl, start documenting internals
Howard Chu [Fri, 2 Sep 2011 08:09:11 +0000 (01:09 -0700)]
Tweak docs
Howard Chu [Mon, 5 Sep 2011 07:46:32 +0000 (00:46 -0700)]
mdb_cmp refactoring
Howard Chu [Mon, 5 Sep 2011 01:34:03 +0000 (18:34 -0700)]
Cursor stuff working, no major perf gain
Howard Chu [Sun, 4 Sep 2011 18:59:32 +0000 (11:59 -0700)]
Cursors in-progress, broken
Howard Chu [Sun, 4 Sep 2011 03:42:46 +0000 (20:42 -0700)]
Use cursor->mc_flags
Howard Chu [Sun, 4 Sep 2011 00:24:39 +0000 (17:24 -0700)]
Begin reimplementing basic ops as cursor ops
Howard Chu [Sat, 3 Sep 2011 22:19:24 +0000 (15:19 -0700)]
Add MDB_{FIRST,LAST}_DUP for cursor_get
Howard Chu [Sun, 4 Sep 2011 03:11:07 +0000 (20:11 -0700)]
Fix mdb_split, fix MDB_GET_BOTH
Howard Chu [Sun, 4 Sep 2011 03:11:07 +0000 (20:11 -0700)]
Fix mdb_split, fix MDB_GET_BOTH