Commit Graph

962 Commits

Author SHA1 Message Date
Kurt Spanier
d92b9d3c9e Introduction of a new Berkeley DB version 2 (!) specific backend.
BEWARE: the backend will be compiled.
        the backend will NOT be invoked, yet.
        the backend CANNOT be invoked, yet, because it is NOT yet
            integrated into the new initialization/startup environment
            of the slapd server.
1999-02-05 16:23:03 +00:00
Kurt Spanier
8107ec91f0 Fix braindead signal handling in linux kernal threads.
First version with waiting on int to become 0; should be implemented
  via conditional variable...
Fix of typos.
First anchor for new bdb2 backend.
1999-02-05 13:20:57 +00:00
Kurt Zeilenga
216049bd12 New Frontend->Backend Interface
Separates per backend type from per backend database initialization
	and startup.  Also supports per type / per backend shutdown.
New frontend startup/shutdown routines are also provided:
	slap_init() slap_startup() slap_shutdown() slap_destroy()
New frontend->backend startup/shutdown is managed by:
	backend_init() backend_startup() backend_shutdown backend_destroy
backend_init() now calls bi_init() to initial all function pointers
for the backend (excepting bi_init() which is now the only hardcoded
entry point).  New entry points are detailed in slap.h struct
backend_info.  backend_info is a per database type structure.
Besides the new startup/shutdown entry points, the new interface
also supports per backend type configuration options.  One could have:

	backend bdb2	(new Berkeley DB 2 backend)
	bdb2_home	/directory

	database bdb2
	...

	*** This code is fairly experimental ***
	*** Much cleanup and testing is still needed ***

see slap.h for details on struct backend_db and backend_info.
1999-02-05 09:03:47 +00:00
Will Ballantyne
cd9ab253d6 Internet drafts associated with LDAP alias change changelog implementation. 1999-02-05 06:59:25 +00:00
Kurt Zeilenga
dec5c37de6 Fix --disable-ldbm... missing CR-LF escape in argument verification. 1999-02-04 23:09:35 +00:00
Kurt Zeilenga
f4dd466315 Build environment changes including:
Kerberos detection of des_debug
	detection of resolv.h and arpa/nameserv.h
Updated affected codes.
1999-02-04 21:54:38 +00:00
Kurt Zeilenga
0482baa520 Need KRB_LIBS to link test programs. 1999-02-04 19:21:04 +00:00
Kurt Zeilenga
2b8970a324 Fix forkandexec() prototype. 1999-02-04 19:01:21 +00:00
Will Ballantyne
44c5c21078 additional checks around derefAlias_r call:
check for alias problem
check for alias != entry
check for null entry in subsequent switch statement
1999-02-04 18:55:58 +00:00
Kurt Zeilenga
72400d11fc Fix mutex initialization. new init function only has one argument. 1999-02-04 18:20:26 +00:00
Kurt Zeilenga
e15e035bbb Fix XXDIR to use $(srcdir) so that VPATH works. 1999-02-04 18:13:51 +00:00
Kurt Zeilenga
366701bdf7 Fix dbcache/entry lock deadlock. If dbcache lock is held, it's
okay to read and write LDBM specific fields (state, refcnt,
LRU.  The id field, though is read-only once set.
cache_find_entry_dn2id(), hence, does not require any entry locks.
cache_find_entry_id() must do a entry_rdwr_trylock() and back
off if busy.
Add new rdwr lock code with trylock() functionality.
Implement entry_rdwr_trylock().
1999-02-04 18:00:50 +00:00
Kurt Zeilenga
6b05425d0f Minor fixes to complete backout of initialization/startup changes. 1999-02-04 17:45:59 +00:00
Kurt Zeilenga
463b64a94c Backout recent init/startup changes in preparation for new
frontend-backend interface.
Includes a number changes to share common routines between
database api types.
1999-02-04 17:41:19 +00:00
Kurt Zeilenga
1e53519136 Backout recent initialization/startup changes in preparation for
new frontend-backend interface.
1999-02-04 17:36:06 +00:00
Kurt Zeilenga
d27b2f811e Backout recent initialization/startup changes in prep for new
frontend->backend interface.
1999-02-04 17:33:46 +00:00
Kurt Zeilenga
fc44d42c53 Backout startup/initialization changes in preparation for new
frontend->backend interface.
1999-02-04 17:28:49 +00:00
Kurt Zeilenga
c6882d4670 Remove rwlock diag messages. 1999-02-04 17:24:26 +00:00
Kurt Zeilenga
efce9cffb4 Use LDAP_ALIAS_DEREF_PROBLEM for all problem dereferencing aliases.
LDAP_ALIAS_PROBLEM is now only used if the alias itself is mangled.
1999-02-04 17:23:34 +00:00
Kurt Zeilenga
a68daccf16 Fix DB_ENV typo. 1999-02-04 05:14:38 +00:00
Will Ballantyne
be9e28907e inserted additional checks for null values, comments
fixed deadlocks
1999-02-04 00:21:57 +00:00
Kurt Zeilenga
5934367242 Another concurrency typo. 1999-02-03 18:32:25 +00:00
Kurt Zeilenga
d671c49b94 Fix set concurrency typos. 1999-02-03 18:29:27 +00:00
Kurt Zeilenga
6f481d0fd1 update pthread comment. 1999-02-03 17:22:22 +00:00
Kurt Zeilenga
7903584911 Use idl_fetch_one() to fetch single id_blocks instead of separate
ldbm_cache_fetch() codes.
1999-02-03 17:14:01 +00:00
Kurt Spanier
e552c315f4 Fix typo in LDAP_LIBAVL_DEPEND 1999-02-03 13:05:10 +00:00
Kurt Zeilenga
365f6bf69b Fix double free of filter when bad. 1999-02-03 05:51:42 +00:00
Kurt Zeilenga
a3cf741ab7 Fix slapd/tool dependencies on libraries. 1999-02-03 05:25:04 +00:00
Kurt Zeilenga
368a507c9a Plug leak of datum. Should be freed after use. 1999-02-03 05:00:41 +00:00
Kurt Zeilenga
ace9fb68c5 Fix ALLIDS bugs
Fix memory leaks
1999-02-03 04:45:08 +00:00
Kurt Zeilenga
16b3111ac7 Got that logic backwards... 1999-02-03 03:50:11 +00:00
Kurt Zeilenga
ee05cd8038 Update AC_DEFINES to use autoconf 1.3 descriptions.
Update acconfig.h to use @TOP@ and @BOTTOM@ to rid ourselves of
the .top/.bot files.
1999-02-03 01:05:41 +00:00
Kurt Zeilenga
0c2ce661fb first arg of ldbm_db_errcall could be a const char * instead of char *. 1999-02-02 23:15:45 +00:00
Kurt Zeilenga
40ba9bc80b Don't try to free NULL idl. Did not cause a problem, though, as
idl_free() had insurance.
1999-02-02 22:46:21 +00:00
Kurt Zeilenga
c61114a4ff Fix typo suggested by Heiko W.Rupp in ITS#63 1999-02-02 20:38:45 +00:00
Kurt Zeilenga
bbc2dfa105 gdbm_nextkey() takes two arguments not one. 1999-02-02 20:36:10 +00:00
Kurt Zeilenga
92e71b459b Hack up a quick bandaid to make things compile. Startup/Initialization
needs work.
1999-02-02 19:26:00 +00:00
Kurt Zeilenga
2b29521596 Fix statlog... debugging change got commit by mistake. 1999-02-02 14:06:23 +00:00
Kurt Zeilenga
fc1bce94f0 Remove config.status dependencies as most folks do not have latest
autoconf/automake environment and should always use provided configure.
1999-02-02 13:59:42 +00:00
Kurt Spanier
442c7e7a7b Added startup/shutdown routine for slapd back-ends. 1999-02-02 08:03:03 +00:00
Kurt Zeilenga
da40e0e350 Even more pthread changes for Digital UNIX... 1999-02-02 04:23:37 +00:00
Kurt Zeilenga
433e8ad645 Add a few comments to help detail some of these functions. 1999-02-02 03:40:19 +00:00
Kurt Zeilenga
3e48937ac8 Fix idl_firstid to return NOID when !(nids > 1) instead of when (nids == 1)
Fix idl_nextid not to skip an ID if ID not in list.
Both of these should not occur if used correctly, but cheap insurance
against incorrect usage is welcomed.
1999-02-02 02:46:18 +00:00
Kurt Zeilenga
4160c2029b Added addition pthread checks for Digital UNIX (OSF/1).
Added comment with order of checks.
1999-02-01 23:54:31 +00:00
Kurt Zeilenga
fb0489d922 Added --enable-bdb2 for Ksp's Berkeley DB 2 specific slapd backend.
Supports 'yes', 'no' (default), and 'auto'.
1999-02-01 22:19:42 +00:00
Kurt Spanier
314f3f6ed7 Introduction of a backend startup/shutdown function to make backend-specific
initialization after reading slapd.conf, and before starting the daemon
1999-02-01 17:37:43 +00:00
Kurt Zeilenga
9f96ab2fb0 Add ac/sysexits.h for GNU win32 environments.
Fix LDAP_API_VENDOR_VERSION -> LDAP_VENDOR_VERSION bug
1999-02-01 02:47:39 +00:00
Kurt Zeilenga
68ed8d140b Add EXEEXT/OBJEXT for GNU win32 environments.
Add AWK for mkdep.
1999-02-01 02:17:17 +00:00
Kurt Zeilenga
94cdf28fa9 Use the following macros in preparation for GNU win32 support.
AC_CYGWIN AC_MINGW32 AC_EXEEXT AC_OBJEXT
1999-02-01 02:06:36 +00:00
Kurt Zeilenga
8981a52ed3 Rebuild configure using autoconf 1.3 (with aclocal from automake 1.4). 1999-02-01 01:36:42 +00:00