Commit Graph

244 Commits

Author SHA1 Message Date
Howard Chu
be02e8ddd0 ITS#7906,#7923 Don't free configinfo in _db_close 2014-08-20 13:49:37 -07:00
Howard Chu
10b6c9f0f2 ITS#7919 fix cache DB config
Don't accept config directives for cache DB until the cache backend type
has been set.
2014-08-13 19:22:17 -07:00
Kurt Zeilenga
5c878c1bf2 Happy new year (belated) 2014-01-25 05:21:25 -08:00
Hallvard Furuseth
5415e1e6de ITS#6758 Rewrite code for contrib:wrap_slap_ops.
Tweak slapd code so wrap_slap_ops can process it: Use pointers
BackendInfo *bi instead of array "func" = &bi->bi_op_bind. In
slapo-chain, keep a slap_operation_t instead of a function ptr.
2013-12-11 14:40:45 +01:00
Quanah Gibson-Mount
1a712bf18e Enable features that were hidden behind LDAP_DEVEL 2013-09-19 09:50:52 -07:00
Howard Chu
3fe88a3cef ITS#7552 fix for templates with * / + 2013-03-25 11:14:01 -07:00
Kurt Zeilenga
0fd1bf30b8 Happy New Year 2013-01-02 10:22:57 -08:00
Howard Chu
6001417f30 ITS#7459 fix config schema 2012-12-03 06:55:12 -08:00
Pierangelo Masarati
ce54dabb1b fix uninit'ed parameters to monitor_back_register_entry_attrs() 2012-04-04 15:09:50 +02:00
Howard Chu
3792e9ec59 ITS#7178 fix uninit'd op->ors_deref 2012-02-23 01:16:39 -08:00
Kurt Zeilenga
2bbf9804b9 Happy New Year! 2012-01-01 07:10:53 -08:00
Howard Chu
e438122448 ITS#7081 fix prev commit 2011-11-04 11:32:38 -07:00
Howard Chu
bc54aa1078 ITS#6981 pcache: don't reference rs->sr_entry in op_cleanup 2011-11-02 09:26:50 -07:00
Hallvard Furuseth
ef7f5f5e32 Cleanup ISO C compatibility for recent commits 2011-09-19 10:31:12 +02:00
Howard Chu
3fb9d604ef ITS#6831 don't push stack unless needed 2011-06-03 22:22:48 -07:00
Howard Chu
8b90f05b59 ITS#6831 additional filter cmp fixes 2011-06-03 21:40:27 -07:00
Howard Chu
aaac401dc8 ITS#6831 fix filter comparison 2011-06-03 19:13:24 -07:00
Ralf Haferkamp
ea22849514 ITS#6954 fix consistency checker prematurely deleting cached queries 2011-05-26 15:26:55 +02:00
Ralf Haferkamp
9e80eab803 fix uninitialized bindref_time (found with valgrind) 2011-05-26 14:07:37 +02:00
Ralf Haferkamp
200af921f4 ITS#6953 do not use the cache db when refreshing 2011-05-26 10:53:27 +02:00
Ralf Haferkamp
5402fef6d7 ITS#6951 Fix two buffersize issue in "pcacheBind" config processing
Found with valgrind
2011-05-24 15:36:15 +02:00
Ralf Haferkamp
aa8615b8a2 ITS#6950 Fix '1.1', '+' and '*' in pcacheAttrSets 2011-05-24 14:35:03 +02:00
Hallvard Furuseth
1e76343406 Unlock new_cached_query->rwlock before destroying it.
Fixes rev 1.210 (new since last OpenLDAP release).
2011-02-11 11:43:18 +00:00
Pierangelo Masarati
4e3eac93f7 prefix undef attrs with undef: (ITS#6823) 2011-02-02 21:45:34 +00:00
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