Howard Chu
040a9cf64c
Fix HDB's use of IDL cache
2003-10-03 02:19:09 +00:00
Hallvard Furuseth
b10daf623f
Declare bdb_cache_entry_db_unlock().
2003-09-29 23:32:11 +00:00
Howard Chu
121c73d838
Add EntryInfo free list
2003-09-27 04:58:36 +00:00
Jong Hyuk Choi
eee84463c0
do not cache internal search results for present entry priming
2003-09-25 07:49:50 +00:00
Howard Chu
76dd6bb6da
Revert to previous behavior:
...
always use DB_AUTO_COMMIT when opening a database, don't make it
dependent on an in-progress transaction
use mutex instead of DB lock for db access.
2003-09-25 00:27:22 +00:00
Howard Chu
5fb7ea2294
Cleanup prev commit
2003-09-22 10:11:10 +00:00
Howard Chu
0342904699
back-hdb caching updates, use EntryInfo cache for hdb_dn2idl.
2003-09-22 08:37:32 +00:00
Howard Chu
fddbe13c6e
Revert broken index optimizations
2003-09-21 10:11:46 +00:00
Jong Hyuk Choi
d5be4896a3
add bdb_get_commit_csn() for use in bdb_search
2003-09-10 17:03:01 +00:00
Jong Hyuk Choi
c36f32a9e4
slaptool update for LDAP Sync replication
2003-08-30 15:19:35 +00:00
Jong Hyuk Choi
090ac0a772
unifdef LDAP_SYNC and LDAP_SYNCREPL
2003-08-27 22:16:04 +00:00
Jong Hyuk Choi
9faedad3e5
Context CSN updates for hdb
2003-08-26 18:57:09 +00:00
Jong Hyuk Choi
3be0b77c88
Context CSN Patch (2)
...
- BDB context csn codes moved to a separate function in back-bdb/ctxcsn.c
2003-08-25 19:15:04 +00:00
Luke Howard
3301a31755
Fix symbol name collision when LDAP_SYNC && BDB_HIER
2003-08-23 11:58:33 +00:00
Jong Hyuk Choi
660617ae66
Context CSN patch (1)
...
- currenty works for refreshOnly mode of LDAP Sync
- Context CSN for add / modify is implemented
- code for delete / modrdn / refreshAndPersist will be soon committed
2003-08-23 02:51:33 +00:00
Jong Hyuk Choi
5bc1e1a3c9
Berkeley DB congestion avoidance
2003-07-01 11:55:18 +00:00
Jong Hyuk Choi
262f8bf11f
LCUP primitive routines removed
2003-06-27 17:39:48 +00:00
Howard Chu
0c8a4b1756
More fixes for modify - don't delete index keys that are still being used
...
by other values of the attribute.
Also, filter out duplicate keys to avoid redundant DB operations.
Key collisions due to separate attributes indexed by supertype are still
not safe. Yuck.
2003-06-13 06:09:45 +00:00
Howard Chu
4a3748b6cf
Restructured to avoid direct use of sl_malloc functions. Minimizes impact
...
of #ifdef USE_SL_MALLOC...
2003-05-25 00:53:08 +00:00
Howard Chu
2bb9a15d57
ITS#2541 added bdb_cache_delete_cleanup() to defer cache delete.
2003-05-23 02:04:03 +00:00
Howard Chu
759996c6e9
Fix HDB search_aliases crash, cleanup search scope processing: call dn2idl
...
directly instead of going thru filter_candidates. Use hdb_ function prefix
in dn2id.c to avoid ambiguities...
2003-05-01 11:59:08 +00:00
Howard Chu
02217c9183
Subtree rename support for the cache
2003-04-23 08:46:23 +00:00
Howard Chu
6f461690c1
Function renaming, make internal funcs static, etc.
2003-04-23 06:34:55 +00:00
Howard Chu
7c39a5e726
filter_candidate tweaks, search_stack tweaks
2003-04-22 18:22:51 +00:00
Howard Chu
68822b1e15
Trim dead BDB_HIER stuff
2003-04-22 17:06:35 +00:00
Howard Chu
89127c93d0
Mem context tweaks for bdb_dn2idl
2003-04-22 06:29:13 +00:00
Howard Chu
bd871d710d
Moved IDL cache code to standalone functions.
...
Use IDL cache in bdb_dn2id_children.
2003-04-22 05:14:27 +00:00
Howard Chu
f0577fcb08
Pass parent EntryInfo instead of parent DN to dn2id_add/delete.
...
Add bdb_cache_children, remove cache flag manipulation from dn2id_children
2003-04-22 04:06:09 +00:00
Howard Chu
d290145776
memory context tweaks
2003-04-21 18:28:38 +00:00
Howard Chu
2048c05a82
Added CACHE_ENTRY_NO_KIDS flag to bei_state to shortcut dn2id_children.
2003-04-17 00:52:31 +00:00
Howard Chu
377bccbc6c
Hierarchical cache management.
2003-04-16 16:23:36 +00:00
Howard Chu
ece7452b05
More memory context tweaks
2003-04-11 01:29:28 +00:00
Pierangelo Masarati
b2075ea932
cleanup & more
2003-04-05 09:57:21 +00:00
Howard Chu
e8c58b4e7f
Major API change - (SLAP_OP_BLOCKS) All request parameters are
...
consolidated into the Operation structure. All reply parameters
are consolidated into the new SlapReply structure. Most operations
now have identical call signatures... Changes are not #ifdef'd,
revert to -r NO_SLAP_OP_BLOCKS if necessary to back out.
2003-03-30 09:03:54 +00:00
Howard Chu
99950e4fe4
Deleted BackendInfo->bi_acl_attribute, bi_acl_group.
...
Replaced with bi_entry_get_rw.
Implemented for back-bdb, back-ldbm, back-ldap.
2003-03-26 11:50:03 +00:00
Howard Chu
a0c58e5f40
Don't use DB_AUTO_COMMIT when opening a database
2003-03-18 00:04:16 +00:00
Jong Hyuk Choi
0d0d5ffddf
declaration of bdb_idl_entry_cmp()
2003-03-12 16:36:28 +00:00
Kurt Zeilenga
1a14def903
Use function pointers to get at backend routines.
2003-02-14 20:51:35 +00:00
Jong Hyuk Choi
85b1783d5c
LDAP Sync Operation (draft-zeilenga-ldup-sync) as a groundwork for an LDAP replication design
2003-02-05 07:37:02 +00:00
Kurt Zeilenga
6939c53170
Happy new year
2003-01-03 20:20:47 +00:00
Jong Hyuk Choi
8074294f1d
LCUP persistent search code drop
2002-10-25 17:51:30 +00:00
Howard Chu
104f8cc409
Simpler fix for NO_THREADS
2002-09-19 06:34:53 +00:00
Howard Chu
919274432b
Fixes for NO_THREADS
...
Use a per-env locker ID
Always set lock_detect, since we allow slapadd etc. concurrently
Also removed unused lock_detect_task code. lockdetect config keyword only
needs <policy>, no <seconds> argument.
2002-09-19 01:13:27 +00:00
Pierangelo Masarati
f4c5362955
add bdb_hasSubordinates() helper
2002-08-29 10:50:53 +00:00
Kurt Zeilenga
fb7ac08ada
cleanup
2002-08-26 19:13:44 +00:00
Howard Chu
d6449b1d57
Experimental code that uses one locker ID per thread. Seems to work OK,
...
is enabled by default. #undef BDB_REUSE_LOCKERS in back-bdb.h to disable.
Probably needs to be disabled when built with NO_THREADS.
2002-08-24 08:11:08 +00:00
Howard Chu
cd60deb4a9
OS/390 EBCDIC support
2002-08-22 04:39:59 +00:00
Jong Hyuk Choi
09a2a8fbce
DB_RMW flag to dn2id and id2entry
2002-06-10 19:02:25 +00:00
Jong Hyuk Choi
976fb2265f
remove dbenv->lock_put() call from transaction-protected operations
2002-06-06 10:14:14 +00:00
Jong Hyuk Choi
7341dc5db6
redesign of back-bdb locking :
...
cache entry is locked by Berkeley DB lock primitives.
2002-05-31 20:49:19 +00:00