Commit Graph

11391 Commits

Author SHA1 Message Date
Howard Chu
df4738f071 Define S_IWRITE if needed 2011-10-12 19:19:52 -07:00
Howard Chu
c647a06441 More for cursor reuse 2011-10-06 19:15:10 -07:00
Howard Chu
4c17f31843 Keep some dn2i/id2e cursors open longer
So they can be reused, and avoid unnecessary page_searches
2011-10-06 19:14:22 -07:00
Howard Chu
7592013f59 Additional tweaks for double-threaded slapadd 2011-10-06 16:10:47 -07:00
Howard Chu
507238713b ITS#7059 replace previous patch
Bug was caused by postalAddressNormalize sending 0-length values
to UTF8StringNormalize.
2011-10-06 15:22:40 -07:00
Howard Chu
d0dd8616f1 Fix UTF8StringNormalize overrun on zero-length string
Detected by valgrind
2011-10-06 14:06:59 -07:00
Howard Chu
df47eb24cd Additional change for prev commit 2011-10-04 23:45:33 -07:00
Howard Chu
34adb86929 Use a thread for LDIF parsing in slapadd -q 2011-10-04 19:21:39 -07:00
Howard Chu
d06301f303 Turn off tool IDL caching
Well, just like in back-bdb in 2005, it only slowed things down
on larger LDIFs.
2011-10-04 02:18:09 -07:00
Howard Chu
9725bc475f Tweak tool IDL cache, use MDB_MULTIPLE 2011-10-03 11:29:04 -07:00
Howard Chu
8a8fb76cca Use MDB_APPEND mode where possible 2011-10-02 21:29:21 -07:00
Howard Chu
98da203fce Use IDL caching in tool/quick mode 2011-10-02 19:38:58 -07:00
Howard Chu
a1533520c1 Use MDB_RESERVE for id2entry_put 2011-10-02 10:06:06 -07:00
Howard Chu
da210f40e1 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.
2011-09-30 03:04:10 -07:00
Howard Chu
3ca52e4f94 ITS#7037 restart consumer on Persist errors
Consumer should never get NO_SUCH_OBJECT for an Add to the underlying DB
during Persist phase.
2011-09-30 02:27:04 -07:00
Howard Chu
638566f155 ITS#7037 fix syncrepl_add_glue for empty suffix 2011-09-30 02:10:37 -07:00
Howard Chu
b72d9b8368 ITS#7052 syncrepl deletes need a non-empty CSN
Must not let the underlying DB generate its own.
2011-09-30 00:09:01 -07:00
Howard Chu
c5ee5212fd Updated for mdb_txn_begin API change.
Nested txn stuff which we don't use.
2011-09-21 15:59:08 -07:00
Hallvard Furuseth
47f6aec61e back-bdb/back-mdb IDL cleanup.
Parenthesize macros.  Microoptimize IDL search.  Use RANGE_<FIRST/LAST>
when IDL is known to be a range.
2011-09-19 10:31:12 +02:00
Hallvard Furuseth
ef7f5f5e32 Cleanup ISO C compatibility for recent commits 2011-09-19 10:31:12 +02:00
Hallvard Furuseth
79f4f3c0bd 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.
2011-09-19 10:31:12 +02:00
Howard Chu
c0fc7fdbed Fix prev commit
Don't truncate all indices if specific indices were given.
2011-09-18 14:47:41 -07:00
Howard Chu
344996c5e8 Support index truncation 2011-09-18 14:28:36 -07:00
Howard Chu
94c0b077d8 New mdb_close() signature 2011-09-18 13:25:38 -07:00
Howard Chu
04311cc716 Fix entry_alloc with no attrs 2011-09-14 10:14:02 -07:00
Howard Chu
0e96868e8e Fix onelevel search from last commit 2011-09-14 09:54:58 -07:00
Howard Chu
dfed6f77d7 More search optimization
Tighten up entry_alloc/entry_decode
Track parent nodes in idscopes
2011-09-13 16:58:38 -07:00
Howard Chu
fb264bf3e1 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.
2011-09-13 15:24:50 -07:00
Howard Chu
65b5ff2de3 mdb_db_close() should not force env_sync in quick mode 2011-09-13 01:28:37 -07:00
Howard Chu
9297050f9e Resolve MDB/HDB monitor OID clashes 2011-09-12 11:41:04 -07:00
Howard Chu
c4ddf352ba Just use memcpy since we know it's non-overlapping 2011-09-12 11:05:38 -07:00
Hallvard Furuseth
141a43c1ee 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).
2011-09-12 19:07:12 +02:00
Howard Chu
16cbeb5e65 Fix - slapcat doesn't set op->o_hdr for tmpmemctx 2011-09-10 01:12:50 -07:00
Howard Chu
802a2ad4b2 Fix out-of-order slapadd 2011-09-09 22:29:19 -07:00
Howard Chu
c5beffc94f Fix bogus error codes 2011-09-09 19:53:56 -07:00
Howard Chu
54ced52c04 Keep cursor open for id2entry 2011-09-09 01:01:25 -07:00
Howard Chu
f72d65b77a Use tmpmem-based entries 2011-09-08 22:07:04 -07:00
Howard Chu
80f6f0a1c0 Drop referral.c 2011-09-08 22:02:59 -07:00
Howard Chu
9240cbfb29 Merge branch 'master' of ssh://git-master.openldap.org/~git/git/openldap 2011-09-08 21:42:58 -07:00
Howard Chu
472c0d7877 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.
2011-09-08 21:39:45 -07:00
Pierangelo Masarati
ca95d353a4 silence warning 2011-09-09 01:09:04 +02:00
Pierangelo Masarati
d324ab5c74 import ITS#6925 patch; fix peeraddr variable name clash in LDAP_CONNECTIONLESS code; fix scope of addr[] when inet_ntop(3) is used 2011-09-09 01:09:04 +02:00
Howard Chu
deb0ef9f1f Fix 6c8e4f2671 2011-09-08 10:33:01 -07:00
Howard Chu
a3346f969f More error msgs 2011-09-06 17:29:42 -07:00
Howard Chu
9dc1b05f30 Fix 6c8e4f2 for empty suffixes 2011-09-06 14:04:38 -07:00
Howard Chu
6c8e4f2671 More search optimizations 2011-09-06 02:21:19 -07:00
Howard Chu
1e32fcf099 Use AD-indexes 2011-09-05 19:52:06 -07:00
Howard Chu
f8dc749c2d Add AttributeDescription counter 2011-09-05 19:51:54 -07:00
Howard Chu
e5b1dce6a7 Debug helper for index 2011-09-05 15:23:08 -07:00
Hallvard Furuseth
a316851494 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
2011-09-05 21:10:04 +02:00