Commit Graph

153 Commits

Author SHA1 Message Date
Howard Chu
d84f8d9b71 Fix prev commit 2007-11-18 21:48:26 +00:00
Howard Chu
02f29d51c6 ITS#5183 preliminary fix - this whole approach needs re-design 2007-11-18 20:50:20 +00:00
Howard Chu
b4bcc325ee Cache-thrashing protection: if the DB has more entries than the cache,
don't allow large search operations that touch more entries churn the
existing cached entries.
2007-11-12 11:16:30 +00:00
Howard Chu
4c7d288eb7 More for BDB 4.6 compatibility 2007-08-17 20:33:46 +00:00
Howard Chu
a87b4592a4 Remove tool_id2entry_get 2007-08-11 04:19:53 +00:00
Pierangelo Masarati
b713eb5102 add monitor support for unindexed attributes (need to manually #define BDB_MONITOR_IDX) 2007-08-07 22:36:04 +00:00
Howard Chu
0c25783cee use dn2id index for extended filters using entryDN 2007-02-08 06:43:28 +00:00
Howard Chu
df31c884b4 Free main-thread keys in db_close, can't do it later because the env
will be gone.
2007-01-25 12:24:52 +00:00
Howard Chu
9898983d58 Minor tweaks, put dup EntryInfo's on free list instead of destroying them 2007-01-17 02:43:05 +00:00
Howard Chu
e48f72c1b5 Unify use of BDB lockers 2007-01-04 08:36:59 +00:00
Kurt Zeilenga
da6d9eb046 happy new year 2007-01-02 20:00:42 +00:00
Howard Chu
b8309b4cf8 Cleanup db_lock/unlock parameters 2006-12-31 23:37:06 +00:00
Howard Chu
e844a6956d In bdb_cache_add use a readlock outside the txn to protect the entry
until send_ldap_result completes.
2006-12-30 12:05:55 +00:00
Pierangelo Masarati
067d6904c2 don't know exactly the reason, but here without this back-hdb suddenly starts crashings all times (since bdb_monitor_* stuff) 2006-09-26 08:43:01 +00:00
Pierangelo Masarati
b890f60e36 minor cleanup 2006-09-14 01:05:02 +00:00
Pierangelo Masarati
55f24ce8f6 - setup framework for monitoring of back-bdb/back-hdb stuff in their
database entry in cn=monitor
- improve support for custom attribute/callback registration
  in back-monitor
- design API for registered antry/attr/callback removal in back-monitor

HEADS UP: now back-bdb requires back-monitor to be present, either static
or dynamically loaded __before__ back-bdb/back-hdb is initialized.
This works for sure if both back-bdb & back-monitor are static or dynamic
(provided back-monitor.la is loaded before back_bdb.la); it is not clear
what happens if back-bdb is static and back-monitor is dynamic.  In case,
either make back-bdb monitoring conditional, or hardwire back-monitor
much like back-config and back-ldif.
2006-09-06 01:54:54 +00:00
Kurt Zeilenga
acbb5cf689 Happy new year! 2006-01-03 23:11:52 +00:00
Howard Chu
f94968fb5b Multi-threaded slapindex 2005-10-27 10:34:33 +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
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
Howard Chu
8f7da062f5 ITS#4088 force cursors to use same locker 2005-10-18 20:52:04 +00:00
Howard Chu
c44210a8bf ITS#4088 proposed fix 2005-10-16 07:37:36 +00:00
Howard Chu
052a4ae6c4 More hdb optimizing - cache subtree IDLs, not just onelevels 2005-09-26 07:30:36 +00:00
Howard Chu
4a7f5e33bd More optimizing - try harder to avoid sorting 2005-09-15 08:29:58 +00:00
Howard Chu
aa3297aa36 More back-hdb search optimization 2005-09-13 07:55:01 +00:00
Hallvard Furuseth
3226cdf2a3 bdb_locker_id, bdb_locker_id_free: BerkeleyDB lock ids are u_int32_t, not int. 2005-07-27 12:19:16 +00:00
Hallvard Furuseth
ae385b3af0 Silence "empty statement" warnings 2005-07-14 03:06:58 +00:00
Howard Chu
fbbfac6771 ITS#3857 fix bottom-up modrdn cascades, use a global modrdn counter. 2005-07-12 13:17:56 +00:00
Howard Chu
5de908e7e1 Dynamic indexing support 2005-04-21 19:04:31 +00:00
Howard Chu
eac3fc3737 Added some delete handlers 2005-04-21 12:45:25 +00:00
Howard Chu
41d37a335e ITS#3660 fix BDB verbose calls 2005-04-16 01:24:00 +00:00
Howard Chu
d9ab73837a ITS#3647 back-hdb fixes, create unsorted subtree IDLs and sort later. 2005-04-13 11:55:25 +00:00
Howard Chu
74e38c0ad4 More verbmasks cleanup, added index unparsing 2005-03-02 16:35:59 +00:00
Howard Chu
44521fd902 Reorganized config/bconfig. Migrated back-bdb config. 2005-03-02 04:46:50 +00:00
Howard Chu
fc337704c5 Fix redundant index lookups from component matching 2005-01-24 12:25:37 +00:00
Howard Chu
2b66ee44bd More cleanup of unused stuff 2005-01-14 05:57:58 +00:00
Howard Chu
0bc4b77527 Clean up unused bt_compare references 2005-01-11 22:38:39 +00:00
Howard Chu
98212b7e08 Start removing custom sort functions from hdb 2005-01-11 19:47:05 +00:00
Kurt Zeilenga
dc0eacd40b Happy New Year! 2005-01-01 20:49:32 +00:00
Jong Hyuk Choi
35c19ef342 misc fix for the component indexing commit 2004-12-20 20:28:30 +00:00
Jong Hyuk Choi
273052b573 adaptive caching implementation 2004-12-14 17:22:22 +00:00
Pierangelo Masarati
bc478dee46 log the right function names 2004-11-17 14:53:03 +00:00
Pierangelo Masarati
b29bf83e7e remove back-*/external.h 2004-11-15 19:45:49 +00:00
Howard Chu
ab25b43364 Update BDB 4.3 errcall prototype again to silence warnings 2004-11-13 13:22:48 +00:00
Pierangelo Masarati
be32dce97f rework static backend initialization 2004-11-11 00:38:11 +00:00
Howard Chu
504d7ea261 Assist in cache debugging 2004-11-08 04:23:37 +00:00
Howard Chu
e6a12272cc BDB 4.3 compatibility 2004-10-16 22:10:32 +00:00
Howard Chu
62b6b32633 Add SLAP_MR_ORDERED_INDEX - support for inequality indexing. Currently
only implemented for generalizedTime syntax.
2004-09-28 13:11:11 +00:00
Jong Hyuk Choi
70314bd98b SLAP_IDL_CACHE macro removed 2004-07-09 03:31:52 +00:00