Commit Graph

220 Commits

Author SHA1 Message Date
Pierangelo Masarati
2a513ad623 cleanup monitor unregister (ITS#6808) 2011-01-27 22:27:22 +00:00
Pierangelo Masarati
d829953dd0 empty query UUID means negative caching (ITS#6796) 2011-01-18 20:44:45 +00:00
Pierangelo Masarati
c4bdb76de0 count attr values; don't free dangling pointers (ITS#6797) 2011-01-18 20:33:12 +00:00
Kurt Zeilenga
966cef8c9a Happy New Year 2011-01-05 00:42:37 +00:00
Hallvard Furuseth
f4a3304477 ITS#6758 Use rs_*() to manage SlapReply entries.
Some noop changes + fixes entry leaks and REP_ENTRY_MODIFIABLE flag leaks.
2010-12-31 17:55:36 +00:00
Hallvard Furuseth
713886ec07 ITS#6758, pcache.c: Avoid SlapReply reuse.
refresh_merge(): Do not reuse Search SlapReply parameter for a Modify,
use a local one and copy its sr_err to the parameter.  The parameter is
from refresh_query().  Move its SlapReply parameter to a local variable.
2010-12-31 13:46:48 +00:00
Hallvard Furuseth
6d7c1880a8 ITS#6758 Avoid SlapReply reuse.
Caller provides a SlapReply and reads the result after the operation,
then reuses it.  Reinitialize before reuse, or move declaration inwards.
2010-12-31 13:08:11 +00:00
Hallvard Furuseth
13f52646b2 ITS#6758 Avoid SlapReply reuse, simple cases.
Caller provides and reuses a SlapReply it does not read after
initialization.  So reinitialize or move the declaration inwards.
In case of refint, move the rs parameter into refint_repair().
2010-12-31 10:46:22 +00:00
Hallvard Furuseth
98966abeef noop commit for ITS#6758: Remove no-effect code.
Unused variable resets, unused SlapReply parameters to some functions.
2010-12-30 23:43:12 +00:00
Hallvard Furuseth
cd6e9156e7 Remove lint (unused vars/labels/funcs/default:s) 2010-12-30 23:34:55 +00:00
Hallvard Furuseth
720aa4b77e Plug mutex/rwlock leaks (destroy them) 2010-12-20 10:57:06 +00:00
Pierangelo Masarati
c405143a0a ignore undefined attrs (ITS#6600, based on patch by Jonathan CLARKE) 2010-09-07 02:03:23 +00:00
Pierangelo Masarati
c78014bc5d make sure callback is freed (ITS#6640) 2010-09-07 02:01:35 +00:00
Kurt Zeilenga
3dadeb3efe happy belated New Year 2010-04-13 22:17:29 +00:00
Pierangelo Masarati
7ca6247395 check for NULL backend (ITS#6490) 2010-03-22 21:48:25 +00:00
Howard Chu
7cec659d74 Fix prev commit 2010-03-13 21:41:51 +00:00
Howard Chu
968663d6e4 Fix for CB_TAIL with cached results 2010-03-10 22:25:42 +00:00
Howard Chu
f992b66f05 ITS#6484 - cache DB needs to release its own entries 2010-03-02 21:29:32 +00:00
Hallvard Furuseth
da747ed63a Fix rev 1.200 commit: C90 forbids mixed declarations and code 2009-11-23 16:04:00 +00:00
Pierangelo Masarati
1970251bb7 check result of str2filter; syncrepl: can be broken; retcode: can't; pcache: shouldn't (ITS#6391) 2009-11-22 11:57:17 +00:00
Howard Chu
ddfe3cde10 ITS#6387 plug leaks 2009-11-18 23:58:39 +00:00
Howard Chu
ff98f4abc5 Use fake_init2 in db_open/db_close since they can execute from a
back-config operation (and could wipe out the state otherwise)
2009-11-15 10:38:13 +00:00
Howard Chu
3d189671bd ITS#6310 dup entry before adding to cache 2009-10-24 05:59:39 +00:00
Pierangelo Masarati
8bdf89ac6a make sure members are not used uninitialized 2009-10-07 22:44:14 +00:00
Howard Chu
2d2fca51d2 ITS#6242 need managedsait to replace glue entries with their real values 2009-09-27 22:42:04 +00:00
Pierangelo Masarati
9f2360e2a9 fix uninitialized and off-by-one (thanks to valgrind) 2009-08-21 16:01:33 +00:00
Howard Chu
27c39c56c4 ITS#6152 add tests for cache refresh and Bind caching 2009-08-21 13:25:38 +00:00
Howard Chu
6d50de8526 ITS#6152 pwdModify support 2009-08-20 09:47:34 +00:00
Howard Chu
17d31e523f Fix prev commit 2009-08-20 09:46:40 +00:00
Pierangelo Masarati
9f13a2ae02 more cleanup of attr renaming 2009-08-19 23:13:13 +00:00
Pierangelo Masarati
afec8d12ad more cache monitoring (ITS#5178) 2009-08-19 23:09:52 +00:00
Pierangelo Masarati
a688867cae more about previous commit 2009-08-19 22:41:06 +00:00
Howard Chu
924fdaaf84 Bind caching works 2009-08-19 08:14:07 +00:00
Howard Chu
3de89b4201 Bind caching, work in progress 2009-08-19 03:00:33 +00:00
Pierangelo Masarati
87321c3fae update cachedQueryURL only when requested 2009-08-18 08:38:42 +00:00
Pierangelo Masarati
ef7569fdc0 expose cachedQueryURL in overlay's monitor entry (partial fulfilment of ITS#5178; needs new register_overlay() code in back-monitor) 2009-08-17 23:23:21 +00:00
Howard Chu
c670264951 For refresh_purge, only delete entry if ours is the last queryid on it.
Otherwise just remove our queryid.
2009-08-17 22:24:26 +00:00
Howard Chu
8cd909db3f Plug leaks in prev commit 2009-08-17 14:38:28 +00:00
Howard Chu
cd0681c4e1 ITS#6152 restart consistency checker when going back online
reset refcnt when refreshing a query
2009-08-17 13:24:33 +00:00
Howard Chu
deb1fb6eb6 Fix refresh_merge, using mods from wrong entry 2009-08-17 13:11:05 +00:00
Howard Chu
73c46fa598 Cleanup prev commit 2009-08-17 12:51:44 +00:00
Howard Chu
a5cfab44d7 ITS#6152 preliminary refresh support, untested 2009-08-17 12:02:48 +00:00
Howard Chu
31084affa6 ITS#6251 framework for TTR. refresh not yet implemented. 2009-08-17 03:03:50 +00:00
Howard Chu
7ad21d7dfd Fix typo in prev commit 2009-08-17 02:22:28 +00:00
Howard Chu
88c6cfa814 Deprecate previous config keywords. Add ttr parsing (no functionality yet) 2009-08-16 23:26:34 +00:00
Pierangelo Masarati
9ebc168a8a log in case of failure (FIXME: should those logs be at ANY level?) 2009-08-04 23:45:42 +00:00
Pierangelo Masarati
1f33edc08e use back-config if supported 2009-08-04 23:27:52 +00:00
Pierangelo Masarati
a1ed732822 count query answerability; allow configuration of private database 2009-08-02 22:00:01 +00:00
Howard Chu
dd88fdbcc3 ITS#6152 add olcProxyCacheOffline for manually toggling cache expiration,
assume some external process will tell us when network is on/offline
2009-08-02 01:20:03 +00:00
Howard Chu
82e95f8091 Change AttributeName.an_oc_exclude to an_oc_flags, avoid multiple
futile searches for OC matches.
2009-07-26 00:14:15 +00:00