Howard Chu
|
a3262ff239
|
ITS#5332 someone else may free the entry as soon as we unlock it
|
2008-02-08 06:32:41 +00:00 |
|
Hallvard Furuseth
|
cd63a0c43b
|
Warning cleanup: function ptr <=> void* at ldap_pvt_thread_pool_<set/get>key()
|
2008-01-11 06:07:43 +00:00 |
|
Kurt Zeilenga
|
c890c96d13
|
Happy New Year (belated)
|
2008-01-08 00:19:56 +00:00 |
|
Pierangelo Masarati
|
30f401c628
|
rename ldap_pvt_thread_pool_setkey_x() to ldap_pvt_thread_pool_setkey() (as part of ITS#5309)
|
2008-01-07 21:35:03 +00:00 |
|
Howard Chu
|
7a3f73efd8
|
More cleanup
|
2007-12-06 06:40:13 +00:00 |
|
Howard Chu
|
ebbb6ab216
|
Cleanup prev commits
|
2007-12-06 06:20:42 +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
|
c2a02618bb
|
BDB 4.2 compatibility for log_printf (requires modern C preprocessor)
|
2007-12-06 01:51:32 +00:00 |
|
Howard Chu
|
abff944303
|
Prefix log msgs with "slapd"
|
2007-12-05 22:35:39 +00:00 |
|
Howard Chu
|
cff654bd60
|
Use BDB transaction log for debug messages
|
2007-12-05 22:27:12 +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
|
3640a6f7e5
|
Fix typo in prev commit
|
2007-11-22 08:52:39 +00:00 |
|
Howard Chu
|
b8fcecd69b
|
More for #5221, don't muck with kids counters on simple renames
|
2007-11-21 15:11:26 +00:00 |
|
Howard Chu
|
a0fbe9f043
|
Minor cleanup
|
2007-11-21 14:55:40 +00:00 |
|
Howard Chu
|
a6c4cf8578
|
ITS#5221 fix NO_KIDS/NO_GRANDKIDS flags on rename ops
|
2007-11-21 14:51:55 +00:00 |
|
Howard Chu
|
7aeb9bf621
|
Fix unlock in prev commit
|
2007-11-12 11:41:45 +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
|
8367f0cfe4
|
revert prev commit, no gain
|
2007-08-26 14:37:12 +00:00 |
|
Howard Chu
|
ddc5c9f735
|
Just use read locks on the entry_db_lock
|
2007-08-26 13:49:35 +00:00 |
|
Pierangelo Masarati
|
071b77cf9d
|
better fix
|
2007-08-25 15:01:27 +00:00 |
|
Pierangelo Masarati
|
84143631ee
|
fix potential concurrency issue (not so potential, if we could regularly trigger it :)
|
2007-08-25 14:58:43 +00:00 |
|
Howard Chu
|
4c7d288eb7
|
More for BDB 4.6 compatibility
|
2007-08-17 20:33:46 +00:00 |
|
Howard Chu
|
8b27523e4c
|
Add config keyword for DN cache size (aka EntryInfoSize)
default is 2x entry cache size
|
2007-08-11 19:29:14 +00:00 |
|
Hallvard Furuseth
|
8e5beab1e8
|
printf %p expects void*
|
2007-04-04 17:49:31 +00:00 |
|
Howard Chu
|
fb583c3071
|
Revert prev commit
|
2007-02-08 10:29:40 +00:00 |
|
Howard Chu
|
57c5bbf7e4
|
Just use a readlock in cache loader
|
2007-02-08 09:27:35 +00:00 |
|
Howard Chu
|
ea8a2894c4
|
Free main-thread keys in db_close, can't do it later because the env
will be gone.
|
2007-01-25 12:00:40 +00:00 |
|
Howard Chu
|
5d4c8f86bf
|
Fix prev commit
|
2007-01-17 10:02:53 +00:00 |
|
Howard Chu
|
ecb06964c5
|
Cleanup prev commit
|
2007-01-17 02:46:41 +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
|
b941856404
|
Set upper bound on EntryInfos, fixed at 4x Entry cachesize.
Probably should be tunable. Probably should add hit/miss counters
to monitor to assist in tuning...
|
2007-01-12 07:35:34 +00:00 |
|
Howard Chu
|
813cca89a6
|
ITS#4797
|
2007-01-08 19:10:23 +00:00 |
|
Howard Chu
|
2082b1f9f0
|
Avoid calling purge too often
|
2007-01-05 06:49:25 +00:00 |
|
Howard Chu
|
001ce8e493
|
Partially revert prev commit, fix lru_purge loop
|
2007-01-04 11:01:59 +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
|
822888eafc
|
Bypass a few redundant locks
|
2007-01-01 11:44:39 +00:00 |
|
Howard Chu
|
6074f48fa7
|
Tweak cache_lru_print
|
2007-01-01 11:17:13 +00:00 |
|
Howard Chu
|
a5546a22a8
|
Fix prev commit, hdb_cache_find_parent
|
2007-01-01 07:09:22 +00:00 |
|
Howard Chu
|
cd35516bdc
|
Fix typo in prev commit
|
2007-01-01 02:16:25 +00:00 |
|
Howard Chu
|
37dfbd3e8b
|
Fix prev commit
|
2007-01-01 01:07:57 +00:00 |
|
Howard Chu
|
d7fa1e764d
|
partial revert - keep acquiring BDB lock in lru_purge.
|
2007-01-01 01:00:19 +00:00 |
|
Howard Chu
|
b8309b4cf8
|
Cleanup db_lock/unlock parameters
|
2006-12-31 23:37:06 +00:00 |
|
Howard Chu
|
a720011c8a
|
Ditch LRU cache replacement in favor of 2nd-chance/clock.
Much better concurrency.
|
2006-12-31 16:16:48 +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 |
|
Howard Chu
|
eb47d50da7
|
Tweak bei_state so cache_lru_add doesn't ever try to free just-added
entries. This allows us to use the frontend's entry directly instead
of having to entry_dup it before adding to the cache.
|
2006-12-01 14:48:38 +00:00 |
|
Howard Chu
|
bd95f8ab1c
|
ITS#4738 provisional fix, still needs confirmation
|
2006-11-13 00:24:59 +00:00 |
|
Quanah Gibson-Mount
|
88ce76f24e
|
fix e_private value, goes along with memory leak fix to accesslog.c
|
2006-08-26 23:20:00 +00:00 |
|
Howard Chu
|
2a2115d70c
|
Fix prev commit, update kid counters too
|
2006-07-19 00:06:57 +00:00 |
|