Commit Graph

18885 Commits

Author SHA1 Message Date
Rein Tollevik
fdd2c3a5a7 ITS#6441 cyrus-sasl 2.1.24 auxprop_lookup plugin returns status. 2010-01-06 13:55:35 +00:00
Hallvard Furuseth
67857a6b94 ITS#6437 FORCED COMMIT: 1.62's Ensure Align >= sizeof(ber_len_t) anticipated
1.64 sl_malloc()'s size=(size +...+ Align-1 + !size)... to make room for tail.
2010-01-06 09:14:08 +00:00
Hallvard Furuseth
644506db6b ITS#6437: Fix pool version misalignment: It aligned heads, not returned blocks 2010-01-05 23:31:14 +00:00
Hallvard Furuseth
705bd5bf40 ITS#6437, move structs slab_object and slab_heap from slap.h to sl_malloc.c 2010-01-05 23:14:14 +00:00
Hallvard Furuseth
1af33a46c9 ITS#6437, save space: Do not allocate the tail, except if size==0.
Store a tail only in freed blocks.  (Alignment ensures there will
be room.)  Put the freed mark in next block's head.
2010-01-05 22:11:24 +00:00
Hallvard Furuseth
d515f24255 ITS#6437 cleanup (noop patch): Join SLAP_NO_SL_MALLOC code with identical
ctx==NULL code.  Add enum No_sl_malloc to avoid #ifdef SLAP_NO_SL_MALLOC.
2010-01-05 19:40:28 +00:00
Hallvard Furuseth
5d883c044a ITS#6437, follow up previous fixes:
Ensure Align >= sizeof(ber_len_t), to clarify the code's requirements.
Rearrange a slap_sl_malloc() branch to factor out ch_malloc fallbacks.
Fix range check (ptr+size >= endptr) -> (size >= endptr-ptr).  Fix debug msg.
2010-01-05 19:25:28 +00:00
Howard Chu
0c195fc013 ITS#6438 check for redundant syncops_free() ? 2010-01-05 03:50:10 +00:00
Hallvard Furuseth
40017c3874 Add comments 2010-01-02 23:42:31 +00:00
Hallvard Furuseth
4e66da4ec1 ITS#6437, slap_sl_calloc():
Check count*size overflow. Omit slap_sl_malloc failure check, it cannot fail.
2010-01-02 22:53:22 +00:00
Hallvard Furuseth
423c13a6d6 ITS#6437, failure/fallback/debug handling:
slap_sl_malloc could return failure. Exit instead, like the rest of sl_malloc.
Since we increase size, reduce it before Debug() and/or fallback to ch_malloc.
Debug() before exit() on failure.  Tweak debug formats and a comment.
2010-01-02 22:41:41 +00:00
Hallvard Furuseth
46b99131cb ITS#6437 cleanup (noop change):
Move thread/nothread code to macros SET_MEMCTX()/GET_MEMCTX().
Rename some thread/memory contexts 'ctx' to thrctx/memctx to avoid confusion.
2010-01-02 22:03:48 +00:00
Hallvard Furuseth
cc58227437 ITS#6437, fixes for stack implementation of slap_sl_realloc():
Preserve 2*int alignment on hosts where sizeof(int) == sizeof(ber_len_t).
If realloc of last block falls back to ch_malloc, free last block properly.
Fix range check (ptr + size < endptr) --> (size < endptr - ptr).
2010-01-02 21:39:46 +00:00
Hallvard Furuseth
5b164ba74c ITS#6437: Fix alignment after slap_sl_realloc().
Also use -Align instead of ~pad: Valid also for non-twos complement.
2010-01-02 21:05:11 +00:00
Hallvard Furuseth
4c36193a5c ITS#6437 cleanup (noop change): Simplify slap_sl_free() code reclaiming space 2010-01-02 18:42:33 +00:00
Hallvard Furuseth
d8d00ec45c ITS#6437 cleanup (noop change): Compute pad,order_start at compile time 2010-01-02 18:27:51 +00:00
Hallvard Furuseth
062021e731 ITS#6437, slap_sl_mem_create():
Bugfix: Switching implementation stack<->pool on an old context could
        crash or leak, it ran the wrong implementation's cleanup code.
Cleanup:  Factor out identical stack/pool code.  Call
          slap_sl_mem_destroy(NULL,) instead of copying its pool code.
API change: slap_sl_mem_destroy(key=NULL,) gets a new meaning.  Does
            not affect current OpenLDAP code, it never passed NULL.
2010-01-02 18:05:56 +00:00
Howard Chu
7946c100a4 ITS#6322 cleanup close_listeners() 2009-12-30 20:33:27 +00:00
Pierangelo Masarati
ade09a57da allow direct insert/delete of olcRwmMap (ITS#6436) 2009-12-21 18:58:21 +00:00
Pierangelo Masarati
0329d982a2 better fix to ITS#6434 (olcRwmMap needs work to allow atomic mods) 2009-12-21 17:32:05 +00:00
Rein Tollevik
874d7001cc ITS#6435: Added optional SLAP_SCHEMA_EXPOSE define. 2009-12-21 17:28:45 +00:00
Pierangelo Masarati
89934d993c ITS#6434 (forced commit) 2009-12-21 13:06:52 +00:00
Pierangelo Masarati
8ddb160ae8 fix in-database configuration of olcRwmMap (no ITS# yet) 2009-12-20 18:31:08 +00:00
Pierangelo Masarati
2047a0d784 plug one-time leaks 2009-12-18 19:07:16 +00:00
Hallvard Furuseth
703571f736 ITS#6403: do not require *ent == NULL on entry to null_back_entry_get() 2009-12-16 09:12:48 +00:00
Gavin Henry
ab01569248 ITS#6290 dynamic group documentation 2009-12-15 13:09:34 +00:00
Gavin Henry
be1d0945e6 (ITS#6382) Error in set example (groups of groups) 2009-12-15 12:42:02 +00:00
Ralf Haferkamp
8542dfd6d7 declaration after code (introduced by ITS#6428 fix) 2009-12-11 18:09:47 +00:00
Howard Chu
aeeed3da85 Revert prev commit, wrong branch 2009-12-11 11:05:12 +00:00
Howard Chu
71b9dccbe2 New access_allowed() 2009-12-11 11:00:17 +00:00
Hallvard Furuseth
198634e945 Fix typo in last commit (ITS#5340: REP_ENTRY_MUSTFLUSH) 2009-12-10 19:54:57 +00:00
Hallvard Furuseth
904ba0d317 Fix rev 1.403 (ITS#6428): C90 does not accept mixed declarations and code 2009-12-10 19:53:10 +00:00
Ralf Haferkamp
8133ec8b21 ITS#6428 fixes for olcTimeLimit 2009-12-10 14:57:12 +00:00
Ralf Haferkamp
414230c469 global limits can also be set in "cn=config" (more forITS#6428) 2009-12-10 14:22:26 +00:00
Ralf Haferkamp
c3de6ba19b apply frontend limits when deleting olcSizeLimit from a database (more forITS#6428) 2009-12-10 13:07:13 +00:00
Ralf Haferkamp
a0540f187c ITS#6428 apply global sizelimit changes to all databases 2009-12-10 11:56:52 +00:00
Hallvard Furuseth
1a7b18bcca ITS#5340: REP_ENTRY_MUSTFLUSH, rs_replace_entry(), rs_ensure_entry_modifiable() 2009-12-10 00:07:34 +00:00
Pierangelo Masarati
f3342dcbd3 document keepalive (ITS#6389) 2009-12-09 12:35:49 +00:00
Howard Chu
12affea4ac ITS#6425 fix uninit'd vars 2009-12-09 00:04:58 +00:00
Pierangelo Masarati
85621c882a guard against simultaneous REP_ENTRY_MUSTRELEASE and REP_ENTRY_MODIFIABLE (related to ITS#6423) 2009-12-08 20:53:39 +00:00
Pierangelo Masarati
48b8970dad issue a useful error message 2009-12-08 19:49:15 +00:00
Pierangelo Masarati
173873172c guard against simultaneous REP_ENTRY_MUSTRELEASE and REP_ENTRY_MODIFIABLE (ITS#6423) 2009-12-08 19:36:10 +00:00
Hallvard Furuseth
78ece29ae1 ITS#5810 undo last commit: s/^#${AC_null}#// would remove #mod#, not #nullmod# 2009-12-08 19:07:12 +00:00
Pierangelo Masarati
51382aab72 ITS#6424 2009-12-08 18:54:24 +00:00
Pierangelo Masarati
88f5f39472 ITS#6418 2009-12-08 18:49:09 +00:00
Pierangelo Masarati
40065adb4d remove REP_ENTRY_MUSTRELEASE when copying (ITS#6423) 2009-12-08 18:47:17 +00:00
Howard Chu
c79267b88a Fix unparse in prev commit 2009-12-08 11:59:29 +00:00
Howard Chu
25a4e7806a ITS#6419 also init for ldaps:// URIs 2009-12-08 11:50:39 +00:00
Pierangelo Masarati
2c1c200662 log about invalid URI (more about ITS#6421) 2009-12-08 01:34:22 +00:00
Pierangelo Masarati
db852e4378 handle simple filters with no brackets (ITS#6421) 2009-12-08 00:17:25 +00:00