Kurt Zeilenga
da6d9eb046
happy new year
2007-01-02 20:00:42 +00:00
Howard Chu
78172aa0cf
Entry/Attribute struct caching, to minimize malloc fragmentation
...
Note: this breaks LDAP_COMP_MATCH and SLAP_ZONE_MALLOC. But they
were probably broken already anyway.
2006-08-29 01:43:23 +00:00
Hallvard Furuseth
6c772f2057
assert expects int. (int)<nonnull ptr/long> can be 0. Use assert(arg!=0/NULL).
2006-04-01 23:52:42 +00:00
Howard Chu
c41a151d1e
Cleanup
2006-03-31 12:53:32 +00:00
Howard Chu
8cbd5ecc13
Cleanup
2006-03-31 10:45:23 +00:00
Pierangelo Masarati
0e2b26986e
do not assume the matching rule synta has a validate handler (ITS#4380)
2006-02-01 21:53:58 +00:00
Kurt Zeilenga
acbb5cf689
Happy new year!
2006-01-03 23:11:52 +00:00
Howard Chu
bb1984eb3e
Fix mod delete by ordered index
2005-12-05 11:46:56 +00:00
Pierangelo Masarati
d34fffcaf9
use lutil_ato*() whenever appropriate
2005-11-24 01:10:05 +00:00
Hallvard Furuseth
dbb2ceac90
Fix ber_bvchr() vs assert() logic. Declare missing variable for code in #if 0.
2005-11-14 16:23:55 +00:00
Pierangelo Masarati
474dfbc8fd
don't trust strchr/strrchr with bervals
2005-11-13 22:26:53 +00:00
Pierangelo Masarati
d959a7a7b5
add some sanity checks...
2005-11-09 17:08:11 +00:00
Howard Chu
ba881c5e6f
In ordered_value_sort, allow zero-length ordered values.
...
In check_vals, log msg when ordered_value_sort fails.
2005-08-28 10:23:10 +00:00
Pierangelo Masarati
2b93e9b376
wrap validate/pretty/normalize for ordered values (only #ifdef LDAP_DEVEL)
2005-08-11 23:35:15 +00:00
Howard Chu
ddf6c7b298
Plug more memleaks
2005-07-21 23:26:40 +00:00
Hallvard Furuseth
d6cc947561
Silence "unused <something>" warnings
2005-07-14 19:52:08 +00:00
Howard Chu
3f542e1868
Fixes for ordered deletes
2005-04-19 18:37:39 +00:00
Howard Chu
d882ce511d
Generic ordered value support
2005-04-14 10:31:51 +00:00
Kurt Zeilenga
dc0eacd40b
Happy New Year!
2005-01-01 20:49:32 +00:00
Sang Seok Lim
71e78dd7f9
Component Matching module
...
See "contrib/slapd-modules/comp_match/README" to understand
what's the purpose of this patch is and how to use it.
2004-10-27 19:37:02 +00:00
Kurt Zeilenga
d611a4b49a
unifdef -UNEW_LOGGING
2004-09-04 04:54:28 +00:00
Pierangelo Masarati
41569c5ed7
fix attr_merge() usage; cleanup
2004-08-06 16:39:45 +00:00
Pierangelo Masarati
70af36dbf5
trim useless code
2004-06-28 22:01:30 +00:00
Kurt Zeilenga
1372965d89
ITS#3092: Rename sl_free() and friends to slap_sl_free()
2004-04-20 03:44:57 +00:00
Kurt Zeilenga
6b410330ed
cleanup
2004-04-08 07:04:34 +00:00
Kurt Zeilenga
44725e7303
use BER_BVNULL
2004-04-07 04:11:43 +00:00
Kurt Zeilenga
3c598e89fb
Happy new year
2004-01-01 19:15:16 +00:00
Kurt Zeilenga
4e15a84452
Updated notices
2003-11-27 01:17:14 +00:00
Kurt Zeilenga
aa225c2c70
Explicitly mark attribute/assertion syntax of values to be normalized
2003-10-18 06:18:05 +00:00
Kurt Zeilenga
7bbc903201
fix up nvalues code so that pretty routines work properly
...
re-add objectClass pretty routines
2003-04-25 02:28:06 +00:00
Kurt Zeilenga
49a4ae59ba
Need to pretty assertion values
2003-04-25 01:01:53 +00:00
Pierangelo Masarati
58d1df26d8
fix possible typo
2003-04-16 19:48:14 +00:00
Howard Chu
f0816ec503
Fix value_find_ex result
2003-04-14 12:27:04 +00:00
Howard Chu
130f6e1b7d
Memory context tweaks for other ops
2003-04-12 10:47:11 +00:00
Howard Chu
ece7452b05
More memory context tweaks
2003-04-11 01:29:28 +00:00
Kurt Zeilenga
c75be97ae9
#ifdef -DSLAP_NVALUES
2003-04-05 03:35:16 +00:00
Kurt Zeilenga
1a55430c65
SLAP_NVALUES: more fixes
2003-03-17 00:27:33 +00:00
Kurt Zeilenga
16c9e81c80
SLAP_NVALUES: test003 now passes (with help of a substr mr hack)
2003-03-01 00:14:32 +00:00
Kurt Zeilenga
152829be87
SLAP_NVALUES:
...
schema engine updated (but not schema routines so things don't run yet)
nvalues mostly populated, enough for tests 0-2 to pass
schema routines needs lots of work
modify/mods codes needs lots of work
2003-02-27 01:54:43 +00:00
Kurt Zeilenga
dd66e6e929
SLAP_NVALUES, round 3
2003-02-26 07:39:30 +00:00
Kurt Zeilenga
25886d989a
Change MR flag names and add comments as to what they mean to slap.h
2003-02-26 02:55:28 +00:00
Kurt Zeilenga
6939c53170
Happy new year
2003-01-03 20:20:47 +00:00
Howard Chu
09679eb715
Added SLAP_MR_VALUE_NORMALIZED_MATCH, avoid redundant normalize when
...
calling value_find with already-normalized DNs
2002-12-04 18:19:46 +00:00
Pierangelo Masarati
a62aa61544
much better fix for ITS#2196 (dnattr without sat_equality is bounced at config)
2002-11-25 18:37:04 +00:00
Pierangelo Masarati
95f75aaf15
mr should not be NULL; fixes ITS#2196
2002-11-24 21:36:14 +00:00
Julius Enarusai
2d98b19bf7
Converted ch_malloc, ch_calloc and ch_realloc calls to SLAP_MALLOC and
...
SLAP_CALLOC in add_value/add_value_one functions and propagated errors to
all functions that use these functions.
2002-11-01 18:59:52 +00:00
Kurt Zeilenga
976c35fbf0
fix possible uninit bug
2002-09-21 04:33:19 +00:00
Pierangelo Masarati
d3ca441ae8
/*
...
* The original code performs ( n ) normalizations
* and ( n * ( n - 1 ) / 2 ) matches, which hide
* the same number of normalizations. The new code
* performs the same number of normalizations ( n )
* and ( n * ( n - 1 ) / 2 ) mem compares, far less
* expensive than an entire match, if a match is
* equivalent to a normalization and a mem compare ...
*
* This is far more memory expensive than the previous,
* but it can heavily improve performances when big
* chunks of data are added (typical example is a group
* with thousands of DN-syntax members; on my system:
* for members of 5-RDN DNs,
members orig bvmatch (dirty) new
1000 0m38.456s 0m0.553s 0m0.608s
2000 2m33.341s 0m0.851s 0m1.003s
* Moreover, 100 groups with 10000 members each were
* added in 37m27.933s (an analogous LDIF file was
* loaded into Active Directory in 38m28.682s, BTW).
*
* Maybe we could switch to the new algorithm when
* the number of values overcomes a given threshold?
*/
2002-09-02 19:41:03 +00:00
Pierangelo Masarati
a038ef68e6
added attr_merge/value_add functions that dela with single attribute; bervals for '*', '+' and '1.1' made available
2002-08-23 08:49:19 +00:00
Kurt Zeilenga
a71cd15182
Add normalize_validate_normalize() to be use instead of value_normalize()
...
where value has not yet been validated.
2002-03-01 18:05:47 +00:00