Commit Graph

139 Commits

Author SHA1 Message Date
Ralf Haferkamp
35c2869e44 ITS#6794 Fixed slapadd -q for glued databases
Cleanup memory/threads more thoroughly in bdb_tool_entry_close() so that a
subsequent bdb_tool_entry_open() (e.g. for a glued database) can setup
things correctly again.
2011-01-21 17:11:21 +00:00
Kurt Zeilenga
966cef8c9a Happy New Year 2011-01-05 00:42:37 +00:00
Hallvard Furuseth
c9e85af35c ITS#6759: assert;Debug -> Debug;assert 2010-12-30 23:19:02 +00:00
Kurt Zeilenga
3dadeb3efe happy belated New Year 2010-04-13 22:17:29 +00:00
Pierangelo Masarati
d85e24dfa3 fix return 2010-02-17 20:08:07 +00:00
Pierangelo Masarati
0cf528630f implement support for selective iteration in slaptools (ITS#6442) 2010-01-18 15:00:40 +00:00
Howard Chu
fe70cdf2ea ITS#5864 - require BDB >= 4.6 for trickle task 2009-01-24 03:43:08 +00:00
Kurt Zeilenga
4af9eb9715 Update copyright notices 2009-01-22 00:40:04 +00:00
Ralf Haferkamp
760660a4a2 Remove unneeded locking. Don't wait for memp_trickle to complete,
loosing an signal doesn't hurt in this case.
2008-11-28 16:09:40 +00:00
Hallvard Furuseth
6f39252bd0 Warning cleanup: signed meets unsigned. 2008-10-13 08:35:31 +00:00
Pierangelo Masarati
dc414747a7 silence warnings 2008-09-16 14:44:24 +00:00
Howard Chu
ece2a4daa6 Use read-only txn's instead of read lockers. Support BDB 4.4-4.7 2008-08-27 01:45:35 +00:00
Howard Chu
90e644a1e9 Cleanup bdb_next_id unused arg 2008-02-10 00:56:44 +00:00
Kurt Zeilenga
c890c96d13 Happy New Year (belated) 2008-01-08 00:19:56 +00:00
Howard Chu
3218f6c110 Fix segv with -q 2007-12-13 07:51:56 +00:00
Howard Chu
460e94c001 ITS#5262 additional cleanup 2007-12-05 14:56:47 +00:00
Howard Chu
6ac8a0c584 ITS#5262 use explicit cursor and locker in dn2id 2007-12-05 14:09:34 +00:00
Howard Chu
f8588ff0c3 ITS#5225 fix contextCSN updating 2007-11-12 03:50:31 +00:00
Howard Chu
d7535d4ddc ITS#5189 revert index.c 1.67, just catch LDAP_OTHER 2007-10-23 00:25:51 +00:00
Howard Chu
a87b4592a4 Remove tool_id2entry_get 2007-08-11 04:19:53 +00:00
Howard Chu
ed4b5d1bd7 ITS#5087 fix tool_id2entry_get for hdb
TODO: rip this all out and just use tool_entry_get
2007-08-11 02:11:27 +00:00
Howard Chu
b514b25795 Quick and dirty BDB 4.6.18 support. Expect this to change again soon. 2007-07-24 14:02:37 +00:00
Hallvard Furuseth
4586ede1ab ITS#5007: Rename label "leave"; OSF1 pthread.h makes it as an exception keyword 2007-06-09 23:45:23 +00:00
Hallvard Furuseth
1c87542ea1 Add missing return from void *bdb_tool_trickle_task() 2007-04-09 22:45:21 +00:00
Howard Chu
87466fc7c8 Add trickle-sync for quick mode 2007-04-07 06:10:01 +00:00
Howard Chu
9a8b3f711e Only sort the first time 2007-01-17 10:43:37 +00:00
Howard Chu
5d3f3c240d ITS#4554 slapindex takes a list of attributes to index 2007-01-15 01:14:14 +00:00
Hallvard Furuseth
d16754c81b Delete unused variables. 2007-01-11 12:04:22 +00:00
Kurt Zeilenga
da6d9eb046 happy new year 2007-01-02 20:00:42 +00:00
Howard Chu
ee0026ec1e Don't bother setting up threads if there are no indexed attrs (unlikely...) 2006-11-15 01:20:34 +00:00
Ralf Haferkamp
e1f068f712 Check for the correct return code of cursor->c_get() (DB_BUFFER_SMALL) 2006-09-27 10:51:06 +00:00
Howard Chu
db082f4b1d Fix prev commit 2006-09-20 20:22:59 +00:00
Howard Chu
f63f46f0b1 Use a single malloc for entry_decode instead of two - partially decode
the entry to get nvals first, so the size can be computed.
2006-09-20 02:43:47 +00:00
Howard Chu
2a5ecbccaa Remove some more yield() calls 2006-05-03 07:41:12 +00:00
Kurt Zeilenga
acbb5cf689 Happy new year! 2006-01-03 23:11:52 +00:00
Howard Chu
553b2884ab cache LRU concurrency improvements, reorder DB accesses for consistency 2005-12-09 00:20:18 +00:00
Howard Chu
d84ffb62a6 ITS#4210 don't setup indexing threads if no indexing is defined. 2005-11-25 22:50:25 +00:00
Howard Chu
a9c95d36be ITS#4175 wait for worker threads to be ready 2005-11-16 03:22:21 +00:00
Hallvard Furuseth
aa37b27ab3 Remove unused declaration bdb_tool_ix_rec() and variable bdb 2005-11-14 14:40:01 +00:00
Howard Chu
8f7fbfe60a ITS#4143 bdb_tool_info should only be non-NULL for QUICK index/add 2005-11-04 02:52:14 +00:00
Howard Chu
675cda1b62 Use #ifdef BDB_TOOL_IDL_CACHE to enable IDL cache. Leave disabled for
now, it appears to just slow things down.
2005-10-27 13:57:48 +00:00
Howard Chu
8d0ed89832 Fix cache flush / retry sequencing 2005-10-27 13:38:21 +00:00
Howard Chu
d85cb6efbb Revert to previous IDL cache scheme. Doesn't seem to help much in
the threaded case, may be best without it.
2005-10-27 12:00:26 +00:00
Howard Chu
f94968fb5b Multi-threaded slapindex 2005-10-27 10:34:33 +00:00
Howard Chu
b3c3335418 Fix IDL caching 2005-10-27 01:41:34 +00:00
Howard Chu
888731e6c3 Use sorted array for indexed attrs instead of AVL tree 2005-10-26 08:31:38 +00:00
Howard Chu
b67c0123d2 Better IDL cache allocation 2005-10-26 05:24:41 +00:00
Howard Chu
8a69f642b8 hdb doesn't need to fix DNs for slapindex 2005-10-25 08:40:01 +00:00
Howard Chu
34e154e28b Add IDL caching for slapadd/slapindex quick mode 2005-10-22 21:41:58 +00:00
Howard Chu
ed5e8db572 Eliminate long-lived read transaction, we can just set a cursor's locker
ID explicitly to our long-lived locker. Should have thought of this before...
2005-10-18 21:35:07 +00:00