Kurt Zeilenga
2bbf9804b9
Happy New Year!
2012-01-01 07:10:53 -08:00
Howard Chu
1c476b302e
ITS#6983 fix duplicate entry in HDB subtree IDL
2011-08-25 14:47:23 -07:00
Howard Chu
4f2949b1ce
Use refcnt instead of keeping entry locked in Add response
2011-02-23 03:53:21 +00:00
Kurt Zeilenga
966cef8c9a
Happy New Year
2011-01-05 00:42:37 +00:00
Howard Chu
f58a646ad6
ITS#6660 preliminary fix. debug additions need to be cleaned up.
2010-12-23 00:16:19 +00:00
Howard Chu
3b2cef17eb
ITS#6577 real fix: keep dn2id cursor open until we re-acquire lock
...
on entryInfo, otherwise BDB locks in reader txn are released too soon
2010-07-01 16:38:32 +00:00
Kurt Zeilenga
3dadeb3efe
happy belated New Year
2010-04-13 22:17:29 +00:00
Pierangelo Masarati
0cf528630f
implement support for selective iteration in slaptools (ITS#6442)
2010-01-18 15:00:40 +00:00
Howard Chu
7f9a60ae7a
More for prev commit: delete bdb_cache_info(), must use cache_find_id().
...
Fixed cache.c_cursize counting.
2009-05-06 13:57:01 +00:00
Kurt Zeilenga
4af9eb9715
Update copyright notices
2009-01-22 00:40:04 +00:00
Hallvard Furuseth
6fbd42a90a
Warning cleanup: Signed meets unsigned:
...
Change insertion index bdb_attr_slot(,, unsigned *ins) to int *ins. This
index is signed elsewhere, including the index returned by the same function.
2008-10-17 23:35:44 +00:00
Howard Chu
81ed60c056
Add dbpagesize keyword for configuring DB file page sizes
2008-10-15 07:41:57 +00:00
Ralf Haferkamp
4788d897d2
Use ConfigReply to return error messages to the client
2008-09-23 15:30:48 +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
e237f4cc43
Re-introduce hdb dup_compare function, default compares too much
2007-12-06 15:58:47 +00:00
Howard Chu
cb0e31fc65
ITS#5262 must protect dn2id between the time it's read from the DB
...
and it's inserted into EntryInfo cache.
2007-12-06 05:48:02 +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
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