Howard Chu
f2800036fa
ITS#2348: cont_alloc/cont_free cleanup in idl_insert_key
2003-03-05 23:10:32 +00:00
Pierangelo Masarati
6cf0c94845
some (poor) index cleanup
2003-02-07 15:20:57 +00:00
Kurt Zeilenga
6939c53170
Happy new year
2003-01-03 20:20:47 +00:00
Pierangelo Masarati
b027461b9d
unsigned is good for all
2002-12-23 13:43:01 +00:00
Pierangelo Masarati
c7e5fba1a2
fix indirect idl block fetch failure (should be back-ported)
2002-12-23 12:51:21 +00:00
Kurt Zeilenga
e1f2ed9bc1
Delete some old (bad) statslog messages
2002-11-11 18:38:57 +00:00
Howard Chu
77783bb4b7
Fix typo in previous commit. (Benign, code was #if'd out anyway.)
2002-08-23 22:29:08 +00:00
Howard Chu
b3ddb5734b
Fix indexing bug in splitting indirect blocks
2002-08-23 03:07:33 +00:00
Julius Enarusai
6107ba67d2
Coverted LDAP_LOG macro to use subsystem ID int values instead of string values
2002-07-11 20:33:24 +00:00
Howard Chu
d2ee3d52a3
Once more, fix idl_intersection. Don't walk past end of arrays.
2002-05-15 03:05:05 +00:00
Howard Chu
d4465e376f
ITS#1732 signed/unsigned integers
2002-04-11 08:46:34 +00:00
Howard Chu
0825e12b42
ITS#1570 - avoid overflowing array when dups are present in IDLs
2002-04-11 08:01:56 +00:00
Julius Enarusai
1649a3f832
Added/Updated LDAP_LOG messages
2002-04-10 22:17:09 +00:00
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