Commit Graph

13394 Commits

Author SHA1 Message Date
Hallvard Furuseth
123948bd5e Add thread debugging wrapper thr_debug.c and ldap_thr_debug.h in libldap_r/,
enabled with LDAP_THREAD_DEBUG (cpp macro and environment variable):

Move any ldap_pvt_* definitions from ldap_int_thread.h to ldap_pvt_thread.h.
#define ldap_int_thread_equal/ldap_pvt_thread_equal instead of tpool.c:TID_EQ.
Define some ldap_debug_*_t types, and LDAP_UINTPTR_T, in ldap_int_thread.h.
ldap_int_thread.h/ldap_pvt_thread.h can now be included multiple times, giving
different results depending on whether libldap_r/ldap_thr_debug.h was included.
Add some cleanup and some preprocessor hacks.
#define LDAP_THREAD*_IMPLEMENTATION in libldap_r/*.c, used by ldap_thr_debug.h.
Add PTHREAD_MUTEX_ERRORCHECK/PTHREAD_MUTEX_ERRORCHECK_NP in thr_posix.c.
2005-09-17 23:28:08 +00:00
Hallvard Furuseth
ad2ec8effa More POSIX 1003.1-2001 support: Replace test -a with &&. Replace egrep
with $EGREP_CMD from configure.  (Renamed from configure's $EGREP just
in case egrep variants exist that use the EGREP environment variable.)
2005-09-17 22:44:03 +00:00
Hallvard Furuseth
16b144c64a Rebuild for configure.in rev 1.600 (POSIX 1003.1-2001 support) 2005-09-17 22:24:47 +00:00
Hallvard Furuseth
023d510766 Support POSIX 1003.1-2001 without XSI extensions (ITS #2667):
Do not use test -a/-o.  Use shell features like &&, || or case...esac.
Use grep instead of egrep (but not the not-yet-portable Posix variant grep -E).
Based on a patch from Paul Eggert.
2005-09-17 22:22:15 +00:00
Howard Chu
61d96fa17c Add dummy reference to librewrite to force it to link 2005-09-17 00:55:50 +00:00
Pierangelo Masarati
f8d49b01be address ITS#4023 2005-09-16 18:12:57 +00:00
Pierangelo Masarati
b79d4bdce5 issue additional useful warning messages; may eventually turn into errors? 2005-09-16 15:00:13 +00:00
Howard Chu
3a9814e725 Fix prev commit, BIG_ENDIAN was broken 2005-09-16 01:56:36 +00:00
Howard Chu
aa0cc7b835 More hdb tweaks, add radix sort code from mbackes@symas.com 2005-09-16 01:25:40 +00:00
Howard Chu
13154b25e3 Fix SWAP macro 2005-09-15 13:54:26 +00:00
Howard Chu
4a7f5e33bd More optimizing - try harder to avoid sorting 2005-09-15 08:29:58 +00:00
Howard Chu
20223a9ca5 Fix ISTACK space 2005-09-15 03:59:11 +00:00
Howard Chu
d269703322 Yet another idl_merge fix (test032 failure) 2005-09-15 03:49:52 +00:00
Howard Chu
6411c57028 Fix prev commit, use BDB_IDL_LAST() 2005-09-15 03:19:26 +00:00
Howard Chu
1c2e20527e Silence return val warnings in prev commit 2005-09-15 02:02:27 +00:00
Howard Chu
9b641006cb ITS#4029 Fix misplaced lines in prev commit 2005-09-15 01:22:22 +00:00
Howard Chu
37ad7614de Add syncdata keyword, to select different sync data formats. Defaults
to "default", can be set to "accesslog" or "changelog". changelog is
not fully implemented yet.
2005-09-14 15:27:20 +00:00
Howard Chu
285f841bd6 Add a "nopresent" keyword to skip the present phase; for backends that are
only used for logging (c.f. accesslog overlay) the present phase is useless.
2005-09-14 15:25:52 +00:00
Howard Chu
5e1ab5aba3 Add CSN management 2005-09-14 15:18:48 +00:00
Howard Chu
f1ffe0076f Zero out op2 2005-09-14 14:10:25 +00:00
Howard Chu
2babdaab9e Add flag for only logging successful operations 2005-09-14 09:11:03 +00:00
Howard Chu
9b1d798ad2 Change slap_ad_undef_remove() to slap_ad_undef_promote().
AttributeDescriptions must never be freed in a running slapd.
2005-09-14 06:17:59 +00:00
Howard Chu
488cf45599 Tweak the description of continuation lines in LDIF 2005-09-14 01:13:18 +00:00
Howard Chu
fb39c24a14 Fix whitespace, remove mention of backslashes. 2005-09-14 00:55:46 +00:00
Howard Chu
aa3297aa36 More back-hdb search optimization 2005-09-13 07:55:01 +00:00
Howard Chu
2807a2596b Simplify array operations 2005-09-13 07:51:51 +00:00
Hallvard Furuseth
a2a587c6ca Add missing comma between Debug() args 2005-09-13 03:35:53 +00:00
Hallvard Furuseth
f9a6f7c41a Format fixes. #include <ac/ctype.h>. Cast isspace() arg to unsigned char. 2005-09-13 03:32:19 +00:00
Howard Chu
9df4ae7d6b Fix prev commit 2005-09-12 05:52:55 +00:00
Howard Chu
ab2b541988 Tweak stack size in prev commit 2005-09-12 03:56:21 +00:00
Howard Chu
2dd87ed9e6 Use quicksort instead of heapsort for hdb_idl_sort 2005-09-12 03:54:52 +00:00
Pierangelo Masarati
52cf1f5f0a cleanup 2005-09-10 19:20:14 +00:00
Pierangelo Masarati
9129a2f7ee silence warnings 2005-09-10 18:59:35 +00:00
Pierangelo Masarati
ceb9c15bdd put logging under Debug(); silence warnings; s/warnings/errors/ #ifdef'd 2005-09-10 18:42:33 +00:00
Pierangelo Masarati
fb3fc81c7e improved authz_backend detection for internal databases (ITS#4018) 2005-09-10 09:56:29 +00:00
Howard Chu
2918d4498f Fix syntax of modrdn/ bad newsuperior test 2005-09-10 01:52:27 +00:00
Howard Chu
214e13eecc Tweak newsuperior error codes 2005-09-10 01:51:34 +00:00
Howard Chu
fc784ad8fd ITS#2757 remove isroot checks, simplify 2005-09-10 01:49:46 +00:00
Howard Chu
262c44772d ITS#2757 remove be_isroot checks, simplify... 2005-09-10 01:16:55 +00:00
Howard Chu
bec98df993 ITS#3979 restore 2.1,2.2 search order 2005-09-09 12:17:33 +00:00
Howard Chu
4f6d762f5f ITS#3979 restore 2.1,2.2 search order 2005-09-09 11:43:44 +00:00
Howard Chu
f1e05336f1 ITS#3979 restore old (RE21, RE22) search order 2005-09-09 11:43:13 +00:00
Howard Chu
3673cceb6c ITS#3979 only support tool entry points if root DB has them 2005-09-09 11:37:00 +00:00
Howard Chu
beaa0f2250 ITS#3979 better check for duplicate bi_open functions 2005-09-09 07:40:54 +00:00
Howard Chu
c8f977e1b7 ITS#3981 ch_realloc( addr, 0 ) frees addr, return NULL 2005-09-09 07:06:58 +00:00
Howard Chu
ba39e3fe00 ITS#3989 more fixes 2005-09-09 04:53:56 +00:00
Pierangelo Masarati
866148810e release resources (ITS#4016) 2005-09-09 02:37:38 +00:00
Howard Chu
d4c3093996 Silence valgrind warnings 2005-09-09 01:44:42 +00:00
Howard Chu
9944c9c461 ITS#4015 silence pointer/integer size warnings 2005-09-08 23:47:19 +00:00
Kurt Zeilenga
bb19302db6 cast pointer to long instead of int to hopefully avoid
truncation.  Change does at least silence warning.
2005-09-08 21:38:20 +00:00