Howard Chu
457b00bf0f
Fix idl_insert_key with USE_INDIRECT_NIDS, wasn't setting NIDS...
2002-01-16 09:58:11 +00:00
Howard Chu
913c321a7e
Fix misplaced #if USE_INDIRECT_NIDS/cont_alloc in idl_delete_key
2002-01-16 07:39:00 +00:00
Kurt Zeilenga
beaf090bbb
remove lint
2002-01-15 17:18:18 +00:00
Kurt Zeilenga
13af7fb073
Misc. cleanup, remove lint, remove unused deprecated functions, etc.
2002-01-15 07:29:15 +00:00
Kurt Zeilenga
0e2af54a3f
Update copyright statements
2002-01-04 21:17:25 +00:00
Pierangelo Masarati
6df4889f43
minor cleanup
2001-11-17 14:39:10 +00:00
Howard Chu
2124673988
Tweaked ID_BLOCKs to record NIDs for INDIRECT blocks as well as directs.
...
Use high bit of NMAX to indicate an INDIRECT. Changes are behind
#ifdef USE_INDIRECT_NIDS
2001-09-22 06:52:32 +00:00
Howard Chu
58f4ffca59
Fix another SEGV from previous patch.
2001-09-22 05:35:52 +00:00
Howard Chu
00a28378f8
Fix previous idl_find patch. Cannot test <=0 with unsigned ints, duh...
2001-09-22 04:10:03 +00:00
Howard Chu
b52795c283
Add idl_find binary search routine, used by idl_insert and idl_split_block
...
instead of linear search.
2001-09-21 20:30:27 +00:00
Kurt Zeilenga
cd51428dbe
Add IDL debugging code from SuSE.
2001-09-07 21:58:31 +00:00
Pierangelo Masarati
aec4430d59
Reworked API of nextid; e_private gets destroyed separately from the entry in case add fails (should fix ITS#1245)
2001-07-20 09:50:28 +00:00
Pierangelo Masarati
fdd45144ca
separate ID return value form return status in dn2id (back-ldbm/dn2id.c)
2001-07-02 19:42:27 +00:00
Gary Williams
3281138bcf
fix format for new logging
2001-01-17 17:01:19 +00:00
Kurt Zeilenga
6be4f4fdb2
remove assert(0)
2000-08-07 17:19:55 +00:00
Kurt Zeilenga
5b856458a2
s/SAFEMEMCPY/AC_MEMCPY/
...
Use AC_FMEMCPY where appropriate (-llber)
2000-07-28 01:07:07 +00:00
Kurt Zeilenga
f770dc16ab
cond_*() routines: Pass pointer to Datum, not Datum. Probably
...
should be done for all of LDBM.
2000-06-14 23:48:13 +00:00
Kurt Zeilenga
4189b89d7a
Forgot continuation key prefix
2000-06-14 23:28:52 +00:00
Kurt Zeilenga
a56c161bdb
Misc code cleanup.
2000-06-10 22:39:30 +00:00
Kurt Zeilenga
693fb9424a
unifdef -DSLAPD_SCHEMA_NOT_COMPAT -USLAPD_SCHEMA_COMPAT
2000-06-06 19:43:18 +00:00
Kurt Zeilenga
4a1f646682
Move experimental Back-BDB2 to Attic
2000-06-06 01:23:17 +00:00
Mark Valence
08f8cecddc
Fix broken non-schema build (var not defined).
2000-06-05 06:00:15 +00:00
Kurt Zeilenga
ea069cb7c2
New indexer/filter codes (test suite works) with cheats
...
Updated NT Project files (with Cyrus SASL library depend)
2000-06-04 22:59:38 +00:00
Kurt Zeilenga
4bc786f34b
Y2k copyright update
2000-05-13 02:47:56 +00:00
Howard Chu
0fa6f1df1e
Tentative fix for ITS #402 . (Not tested yet.) If successful, this patch
...
should also be applied to back-bdb2/idl.c.
1999-12-17 10:04:31 +00:00
Kurt Zeilenga
35655c056f
Reimplement LDBM_SYNC/LDBM_NOSYNC code (dbnosync).
...
Old code applied sync flags to store(), however supported DBMs
require such flags to be specified during open(). The new
code now applies flags in ldbm_cache_open (which calls ldbm_open).
ldbm_cache_close() now calls ldbm_sync(). This will force
a updating of on-disk contents after each LDAP operation.
The old code either failed to sync the on-disk contents until
close or synced on every store. Per LDBM operation syncing
*should* be safe enough... real data safety requires transactions.
Removed nosync option from BDB2 as it is not compatible with
txn support.
Also added code to disable DBM level locking as slapd is only
process acessing the databases (dbnolocking).
1999-09-23 19:49:20 +00:00
Kurt Zeilenga
403f4479bc
Add OpenLDAP RCSid to *.[ch] in clients, libraries, and servers.
...
Replace old Id as needed (back-tcl).
Leave updating of contribWare to contributors (for now).
1999-09-08 19:06:24 +00:00
Hallvard Furuseth
1cde481298
Move `#include "ldap_defaults.h"' into slap.h, which #ifdefs on it.
1999-09-03 23:10:05 +00:00
Hallvard Furuseth
5b6c6b5855
Fix SAFEMEMCPY bug from revision 1.32 in idl_insert()
1999-09-03 11:01:18 +00:00
Kurt Zeilenga
6b80f345a4
Fix idl_insert_key() return codes.
1999-09-01 18:30:13 +00:00
Kurt Zeilenga
255e36df0b
Backout fetch_one copy change
1999-08-20 22:37:30 +00:00
Kurt Zeilenga
2a74677799
const'fication
1999-08-20 19:00:44 +00:00
Kurt Zeilenga
e4f6d54877
New dn2id format with base/one/subtree indices (ldbm/bdb2)
...
New id2entry (id-less) format (ldbm/bdb2)
Removed id2children (ldbm/bdb2)
Added nextid database (ldbm)
Broke ldbmtest
Removed ldif2* tools (ldbm/bdb2)
Added slap tools (slapadd, slapcat, slapindex)
1999-08-17 19:00:59 +00:00
Kurt Zeilenga
65ed23a120
limit maxindirect to 9
...
ifdef CONT_POSTFIX, swap index and old key in new key. Not defined as
it would cause more grief than good (but should be enabled on next major
index change).
1999-08-09 18:51:02 +00:00
Kurt Zeilenga
5ecf77c034
Eliminate a bubble move.
1999-08-07 23:25:48 +00:00
Kurt Zeilenga
136bb9c231
Use a cursor to step through ID_BLOCKS.
1999-08-07 21:14:24 +00:00
Kurt Zeilenga
9c3ed0310b
Add copyright notices.
1999-08-06 23:07:46 +00:00
Kurt Zeilenga
170836751a
Namespace changes
...
added slap_ and ldbm_ to many structures
added typedefs to many structures
used typedefs
New main.c argument parsing with ldap url support (replacing -a address).
New sockaddr_in handling and support for multiple listeners.
1999-07-19 19:40:33 +00:00
Kurt Zeilenga
21e081dc5b
Separate autoconf generated values from "defaults".
...
ldap_defaults.h incorporates non-generated ldapconfig.h values.
ldap_config.h.in is new template for autoconf generated defaults
(namely directories and paths)
ldap_config.h.nt, NT template (must be manually copied)
s/<ldapconfig.h>/<ldap_defaults.h>/
s/DIRSEP/LDAP_DIRSEP/ & s/DEFAULT_/LDAP_/
1999-06-17 03:54:25 +00:00
Hallvard Furuseth
2b32e6afd7
Plug memory leaks
1999-04-04 21:34:33 +00:00
Kurt Zeilenga
a8a05cbe48
Update NT port with support for -lldap_r and -lldbm.
...
Also add initial slapd .dsw/.dsp files. Still needs work (mainly syslog).
1999-03-01 22:37:05 +00:00
Kurt Zeilenga
2a20131eaa
Consistently use %ld for printing IDs. %lu was used in many cases.
...
I rather have NOID printed as "-1". It it could argued that ID
should be signed.
1999-02-11 18:19:52 +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
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 Zeilenga
ace9fb68c5
Fix ALLIDS bugs
...
Fix memory leaks
1999-02-03 04:45:08 +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
59a288abb5
Rewrite IDL block code to use simple array and accessor macros
...
instead of array with overlayed struct fields. (which is inherently
non-portable).
Change maxid check in insert to be greater than or equal instead
of equal.
Use SAFEMEMCPY.
1999-01-31 07:55:53 +00:00
Kurt Zeilenga
b815f61e0d
Wrap db2 mutex with -DHAVE_BERKELEY_DB2 (should be hidden in -lldbm) ITS#35
...
Unwrap ldbm_datum_init()
1999-01-07 03:28:08 +00:00
Kurt Spanier
bfb27120be
Patch for Berkeley DB 2.6.4 (beta) (DB)->cursor() call.
...
Introduction of ldbm_datum_init().
Patch for non-NULL pointer test befor call to ldbm_datum_free().
1998-12-29 17:28:45 +00:00