Kurt Zeilenga
eb9a3c1876
unifdef -DSLAP_ACL_HONOR_DISCLOSE
...
unifdef -DSLAP_ACL_HONOR_MANAGE
unifdef -DSLAP_OVERLAY_ACCESS
unifdef -DSLAP_ORDERED_PRETTYNORM
unifdef -DSLAP_AUTHZ_SYNTAX
Move LDAP_COLLECTIVE_ATTRIBUTES, LDAP_COMP_MATCH, and LDAP_SYNC_TIMESTAMP
back behind LDAP_DEVEL (as these either too experimental or not yet
implemented).
2006-04-12 05:53:26 +00:00
Kurt Zeilenga
c48338233e
s/LDBM/BDB/
2006-04-08 04:24:12 +00:00
Howard Chu
c76eb501ab
Revert cache-purge task, go back to purging inline
2006-04-05 07:17:11 +00:00
Hallvard Furuseth
da0c0360e4
Warnings: Unused vars. funcptr=0, not =NULL. if(b=...) -> if((b=...) != NULL).
2006-04-02 19:54:24 +00:00
Hallvard Furuseth
581c1ff6c7
Cast ctype.h char arguments to unsigned char
2006-04-01 23:44:42 +00:00
Howard Chu
c002351982
cleanup
2006-03-31 22:24:39 +00:00
Howard Chu
c41a151d1e
Cleanup
2006-03-31 12:53:32 +00:00
Howard Chu
0af1940f3f
plug leaks
2006-03-31 12:20:04 +00:00
Howard Chu
90c8a53db4
plug leaks
2006-03-31 11:15:26 +00:00
Kurt Zeilenga
5487575086
Add link to FAQ entry on BDB tuning
2006-03-30 17:56:56 +00:00
Kurt Zeilenga
71511a0569
more txn infrastructure
2006-03-08 05:54:10 +00:00
Kurt Zeilenga
815c178edc
control/TXN cleanup
2006-03-07 22:05:57 +00:00
Kurt Zeilenga
247536744e
Some more txn infrastructure
2006-03-07 08:07:21 +00:00
Howard Chu
9eca89acc8
Improve prev commit
2006-02-09 07:02:40 +00:00
Howard Chu
6344d36df0
Same as ITS#4385, must wake listener after submitting job to runqueue
2006-02-09 06:53:49 +00:00
Howard Chu
fe3b6d0071
ITS#4384 rework entryCSN handling, retrieve from incoming request
...
if it was provided. Always check and graduate, regardless of shadow status.
2006-02-05 01:09:48 +00:00
Howard Chu
a970038b0c
ITS#4373, fix prev commit
2006-01-25 19:06:16 +00:00
Kurt Zeilenga
f5b9ff7940
unifdef -DSLAPD_CONF_UNKNOWN_BAILOUT -DSLAPD_CONF_UNKNOWN_IGNORED=""
...
-DSLAPD_DEBUG_CONFIG_ERROR=LDAP_DEBUG_ANY
2006-01-24 04:40:01 +00:00
Howard Chu
3407467ca2
ITS#4361, 4362 fix autorecovery logic, add ALOCK_NOSAVE flag to record
...
txn/non-txn status of the environment.
2006-01-22 13:51:33 +00:00
Howard Chu
bf0692d5ba
ITS#4360 must init c_minfree
2006-01-22 05:11:23 +00:00
Howard Chu
a4a85e03c1
ITS#3950 delete gratuitous yield()s
2006-01-15 13:33:29 +00:00
Howard Chu
34cefbe0ad
ITS#4324 don't auto-recover in slapcat. Don't trigger a recovery if
...
DB_CONFIG has same mtime as DB environment.
2006-01-11 15:38:30 +00:00
Pierangelo Masarati
697df7cc06
silence warning
2006-01-07 11:06:32 +00:00
Pierangelo Masarati
3037a199d4
part of o_csn memory handling cleanup
2006-01-06 16:32:33 +00:00
Pierangelo Masarati
80dac35c5e
cleanup previous commit
2006-01-06 16:04:07 +00:00
Pierangelo Masarati
d384ab5ad9
allow addiion of suffix entry when default referral is defined (ITS#4310)
2006-01-06 14:50:43 +00:00
Howard Chu
a614a1c16e
Cleanup task declarations
2006-01-06 04:06:18 +00:00
Howard Chu
e82ce6444c
ITS#4308 fix cache flush task interval
2006-01-06 03:51:56 +00:00
Pierangelo Masarati
b18ba481cf
re-fix ITS#4260
2006-01-05 21:22:50 +00:00
Kurt Zeilenga
acbb5cf689
Happy new year!
2006-01-03 23:11:52 +00:00
Luke Howard
e7f164773e
Remove RDN checks/logging -- now done by frontend
2006-01-02 15:38:04 +00:00
Pierangelo Masarati
9c7aca5b47
fix indentation
2006-01-02 08:18:29 +00:00
Luke Howard
b6fffd1417
Add orr_modlist member to request structure, containing a list of
...
modifications to be applied by the backend atomically with a modify
RDN request.
Handle updating of RDN values in frontend.
Code that calls a backend's be_modrdn should call slap_modrdn2mods(op, rs)
before invoking the backend and cleanup with slap_mods_free( op->orr_modlist, 1 ).
See do_modrdn() for an example.
2006-01-01 09:23:24 +00:00
Howard Chu
059257aeaf
cleanup db_close
2005-12-20 00:55:39 +00:00
Howard Chu
684c01ed1f
ITS#4259 revert prev commit, fixed in alock.c instead.
2005-12-20 00:48:15 +00:00
Howard Chu
5b7f102ad2
ITS#4259 don't try to alock_close if we never opened...
2005-12-20 00:44:05 +00:00
Pierangelo Masarati
b984e616c3
remove support for control as the operation is now incompatible
2005-12-16 15:01:59 +00:00
Pierangelo Masarati
1c523e3548
anticipate sr_err/sr_ref cross-check, so that the right error gets logged
2005-12-16 11:33:11 +00:00
Pierangelo Masarati
e841c3b73b
reset bi_attrs after reindexing (ITS#4260)
2005-12-16 00:44:13 +00:00
Pierangelo Masarati
53d41587ad
__should__ fix ITS#4262; please review
2005-12-16 00:04:51 +00:00
Pierangelo Masarati
e788a5c380
first part of fix to ITS#4262
2005-12-15 23:46:23 +00:00
Howard Chu
dd3d53fd85
Fix ITS#4263
2005-12-15 22:52:31 +00:00
Pierangelo Masarati
93e8395e30
log what is being modified
2005-12-15 17:45:31 +00:00
Howard Chu
553b2884ab
cache LRU concurrency improvements, reorder DB accesses for consistency
2005-12-09 00:20:18 +00:00
Howard Chu
3e062a3f35
ITS#4254 fix lock ordering
2005-12-08 23:45:47 +00:00
Howard Chu
2bb6555726
ITS#4250 bdb_idl_delete needs to check for Range
2005-12-07 01:54:50 +00:00
Pierangelo Masarati
f29447d9de
use helper to destroy modrdn modifications...
2005-12-06 22:55:30 +00:00
Howard Chu
dcaa6aa830
ITS#4226 must close cursor when limiting candidate check
2005-11-29 11:34:47 +00:00
Howard Chu
a0d9bd7890
ITS#4223 don't store negative results in IDL cache
2005-11-28 22:53:03 +00:00
Kurt Zeilenga
0d56ddda04
unifdef -DBDB_SUBENTRIES -DLDBM_SUBENTRIES
2005-11-27 01:03:03 +00:00
Kurt Zeilenga
48cb85865d
Remove some unnecessary #ifdefs
2005-11-26 07:38:18 +00:00
Howard Chu
d84ffb62a6
ITS#4210 don't setup indexing threads if no indexing is defined.
2005-11-25 22:50:25 +00:00
Pierangelo Masarati
b3c8a976ec
use LDAP_SIZELIMIT_EXCEEDED; rework the return values of slap_send_search_entry(); silence a few warnings
2005-11-25 22:17:24 +00:00
Pierangelo Masarati
ea83f6a669
check sizelimit in frontend (ITS#4213)
2005-11-25 00:28:33 +00:00
Pierangelo Masarati
d34fffcaf9
use lutil_ato*() whenever appropriate
2005-11-24 01:10:05 +00:00
Howard Chu
7a46ab6e04
ITS#4201 undo all bdb_db_open() steps if any step fails.
2005-11-23 23:57:40 +00:00
Howard Chu
2b9c8076cc
In hdb_dn2idl_internal, skip cursor get when dkids == 1
2005-11-20 22:32:39 +00:00
Howard Chu
3429c5a566
ITS#4186 hdb_idl_append() must not alter the tmp input.
2005-11-20 22:02:41 +00:00
Howard Chu
3167b29812
Fix back-bdb inequality_candidates to use unchecked limit.
...
Fix syncprov_findcsn to set unchecked limit. (ITS#3939)
2005-11-20 10:39:05 +00:00
Pierangelo Masarati
55c52c5c72
better fix to ITS#4183 (the prototype in proto-slap.h was erroneously committed earlier)
2005-11-18 00:00:39 +00:00
Howard Chu
a9c95d36be
ITS#4175 wait for worker threads to be ready
2005-11-16 03:22:21 +00:00
Pierangelo Masarati
af23be3675
silence warnings...
2005-11-14 21:47:17 +00:00
Pierangelo Masarati
e88c4b48e3
don't leak fakeroot save_attrs
2005-11-14 19:16:00 +00:00
Pierangelo Masarati
fe59b0be6e
reset freed resources
2005-11-14 18:38:58 +00:00
Pierangelo Masarati
144ad3657e
handle empty parent (related to ITS#4171)
2005-11-14 18:21:55 +00:00
Hallvard Furuseth
aa37b27ab3
Remove unused declaration bdb_tool_ix_rec() and variable bdb
2005-11-14 14:40:01 +00:00
Pierangelo Masarati
474dfbc8fd
don't trust strchr/strrchr with bervals
2005-11-13 22:26:53 +00:00
Pierangelo Masarati
29dfcec866
reverse previous commit
2005-11-04 20:00:03 +00:00
Pierangelo Masarati
a00f337acd
partially revert previous commit
2005-11-04 07:57:54 +00:00
Howard Chu
8f7fbfe60a
ITS#4143 bdb_tool_info should only be non-NULL for QUICK index/add
2005-11-04 02:52:14 +00:00
Pierangelo Masarati
a1a68333dc
only add opattrs if not shadow; use helper to extract rdn
2005-11-04 01:27:31 +00:00
Kurt Zeilenga
ecd86725f2
Update result code to IANA-assigned values
...
Provide some backwards compatibility.
Misc cleanup
2005-11-03 01:27:07 +00:00
Howard Chu
948e19e132
ITS#4132 reset CACHE_ENTRY_ONELEVEL when complete. Fell out from a bad merge.
2005-11-01 15:52:44 +00:00
Howard Chu
9edea08357
Fix uninit'd rc
2005-10-30 07:42:08 +00:00
Howard Chu
675cda1b62
Use #ifdef BDB_TOOL_IDL_CACHE to enable IDL cache. Leave disabled for
...
now, it appears to just slow things down.
2005-10-27 13:57:48 +00:00
Howard Chu
8d0ed89832
Fix cache flush / retry sequencing
2005-10-27 13:38:21 +00:00
Howard Chu
d85cb6efbb
Revert to previous IDL cache scheme. Doesn't seem to help much in
...
the threaded case, may be best without it.
2005-10-27 12:00:26 +00:00
Howard Chu
f94968fb5b
Multi-threaded slapindex
2005-10-27 10:34:33 +00:00
Howard Chu
b3c3335418
Fix IDL caching
2005-10-27 01:41:34 +00:00
Howard Chu
888731e6c3
Use sorted array for indexed attrs instead of AVL tree
2005-10-26 08:31:38 +00:00
Howard Chu
08cc40317b
Fix notags/nosubtypes handling
2005-10-26 06:36:34 +00:00
Howard Chu
b67c0123d2
Better IDL cache allocation
2005-10-26 05:24:41 +00:00
Howard Chu
2f9965c32b
Lower id2entry cache priority in tool mode
2005-10-25 10:54:04 +00:00
Howard Chu
8a69f642b8
hdb doesn't need to fix DNs for slapindex
2005-10-25 08:40:01 +00:00
Howard Chu
34e154e28b
Add IDL caching for slapadd/slapindex quick mode
2005-10-22 21:41:58 +00:00
Howard Chu
a14fd7cc3b
Cleanup unused def
2005-10-18 21:36:06 +00:00
Howard Chu
ed5e8db572
Eliminate long-lived read transaction, we can just set a cursor's locker
...
ID explicitly to our long-lived locker. Should have thought of this before...
2005-10-18 21:35:07 +00:00
Howard Chu
8f7da062f5
ITS#4088 force cursors to use same locker
2005-10-18 20:52:04 +00:00
Howard Chu
6e2c36b03d
Fix noop behavior, don't same TXN twice. Use consistent return code.
2005-10-17 08:09:28 +00:00
Howard Chu
c44210a8bf
ITS#4088 proposed fix
2005-10-16 07:37:36 +00:00
Howard Chu
7dcb68f6fa
Move CSN invocations to backends
2005-10-13 11:58:44 +00:00
Kurt Zeilenga
6db7e605ee
Align Operation buffers using LBER_ALIGNED_BUFFER
2005-10-12 23:17:28 +00:00
Howard Chu
1ea0c0dbda
Remove obsolete csn variables
2005-10-12 07:59:51 +00:00
Howard Chu
a0db9c1341
Fix dn2id_add/del parent cache updates
2005-09-27 14:11:10 +00:00
Howard Chu
052a4ae6c4
More hdb optimizing - cache subtree IDLs, not just onelevels
2005-09-26 07:30:36 +00:00
Howard Chu
dd21d3a29f
ITS#4030 fix alias deref for Finding, fix alias error code propagation.
2005-09-22 21:12:04 +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