Commit Graph

1101 Commits

Author SHA1 Message Date
Howard Chu
70f375eae0 Fix GE inequality lookups, key was getting overwritten 2004-12-06 07:16:57 +00:00
Howard Chu
30a6f4d24d Better fix for ITS#3365, manage back-bdb's read locks so frontend/etc.
don't need to worry about them.
2004-12-05 02:00:19 +00:00
Howard Chu
74da2306ff Add a checkpoint task if time-based checkpointing is configured. 2004-12-03 17:11:39 +00:00
Howard Chu
5f99f7c991 More migration of syncrepl from frontend to syncprov overlay
define OPERATION_BUFFER_SIZE for dummy Operations
2004-11-27 00:57:37 +00:00
Howard Chu
3426a11983 More BDB_PSEARCH cleanup 2004-11-26 09:39:33 +00:00
Howard Chu
127a85b553 More Operation/Opheader fixes 2004-11-26 09:39:14 +00:00
Howard Chu
3a5bde98ba Disable back-bdb native syncrepl support, enable syncprov overlay,
remove syncrepl stuff from Operation struct
2004-11-25 21:16:54 +00:00
Howard Chu
618cc56265 Merge op->o_sync_mode into op->o_sync 2004-11-25 18:31:31 +00:00
Howard Chu
dca809ff8d Revert previous commit, it breaks everything. 2004-11-25 07:03:43 +00:00
Howard Chu
47dd8d8732 Dynamic control management 2004-11-23 13:08:45 +00:00
Pierangelo Masarati
dd18c8b2a4 revert last commit 2004-11-17 15:56:25 +00:00
Howard Chu
f1ae2e63c1 Fix BDB 4.3 fasttool, flag must be set before opening environment 2004-11-17 15:12:31 +00:00
Pierangelo Masarati
262df940f1 cleanup previous commit 2004-11-17 15:05:59 +00:00
Pierangelo Masarati
bc478dee46 log the right function names 2004-11-17 14:53:03 +00:00
Pierangelo Masarati
b29bf83e7e remove back-*/external.h 2004-11-15 19:45:49 +00:00
Pierangelo Masarati
9c550e7235 first step towards removing back-*/external.h 2004-11-13 18:52:44 +00:00
Howard Chu
3cfbe2ec29 fasttool: BDB 4.3 uses DB_LOG_INMEMORY instead of DB_TXN_NOT_DURABLE 2004-11-13 13:23:33 +00:00
Howard Chu
ab25b43364 Update BDB 4.3 errcall prototype again to silence warnings 2004-11-13 13:22:48 +00:00
Pierangelo Masarati
be32dce97f rework static backend initialization 2004-11-11 00:38:11 +00:00
Jong Hyuk Choi
62febe5dff fix slap_sl_free() calls in pre / post read controls 2004-11-10 21:38:41 +00:00
Jong Hyuk Choi
71ac7140b6 fix suspicious capitalization to make subentries control work properly 2004-11-10 03:52:42 +00:00
Jong Hyuk Choi
b6f77e2936 ldapsync fix for recursive deletion (ITS#3385) 2004-11-10 03:52:12 +00:00
Howard Chu
73a666778e Delete incorrect comments 2004-11-10 01:29:51 +00:00
Howard Chu
9dd58533ca Better cache counting, partially revert 1.85 2004-11-08 07:18:33 +00:00
Howard Chu
504d7ea261 Assist in cache debugging 2004-11-08 04:23:37 +00:00
Ralf Haferkamp
c7a2f95493 Plugged memory leak 2004-11-05 15:29:59 +00:00
Kurt Zeilenga
b29e311ae7 unifdef -DBDB_ALIASES
delete dead code
2004-11-05 07:48:15 +00:00
Howard Chu
14b0d4fdad Fix hdb cache kid counts 2004-10-31 22:07:15 +00:00
Howard Chu
7087ffa2ca ITS#3356 - when purging cache, free entryInfo if node has no children 2004-10-31 13:04:27 +00:00
Howard Chu
501f749c05 Don't access entry after commit; it may be gone if the cache is full 2004-10-30 23:48:26 +00:00
Howard Chu
e7ec96fc6d ITS#3358 - make bdb_cache_lru_add skip entries that are being deleted 2004-10-27 14:01:12 +00:00
Howard Chu
e6a12272cc BDB 4.3 compatibility 2004-10-16 22:10:32 +00:00
Howard Chu
84ce549016 define DB_VERSION_FULL to simplify version checks 2004-10-16 21:59:58 +00:00
Jong Hyuk Choi
6db389efd9 further cleanup of search data upon exit, abandon, cancel 2004-10-16 16:10:00 +00:00
Howard Chu
ca0bf91bba BDB 4.3 compatibility, if the reader TXN is deadlocked we must abort
and recreate it.
2004-10-16 13:07:01 +00:00
Jong Hyuk Choi
0af878ac3f syncrepl consistency patch: utilize BDB txn rollback 2004-10-12 17:53:50 +00:00
Jong Hyuk Choi
4efd705cc3 syncrepl consistency patch 2004-10-09 09:26:16 +00:00
Pierangelo Masarati
559cf8bfb1 revert previous commit 2004-10-08 00:27:26 +00:00
Howard Chu
7e87f54716 Revert ITS#3353 patch, it needs to be reworked. 2004-10-06 05:51:38 +00:00
Jong Hyuk Choi
db4bc08d8c misc cleanup 2004-10-05 00:33:00 +00:00
Pierangelo Masarati
0c1f1f959f minor cleanup 2004-10-04 20:55:09 +00:00
Howard Chu
fda3d6260e ITS#3353 consolidate slapd globals into a single struct 2004-10-01 07:33:16 +00:00
Howard Chu
62b6b32633 Add SLAP_MR_ORDERED_INDEX - support for inequality indexing. Currently
only implemented for generalizedTime syntax.
2004-09-28 13:11:11 +00:00
Jong Hyuk Choi
5c0581b184 Modified @oc supprot code to the share anlist routines; Revised anlist routines 2004-09-23 02:48:14 +00:00
Jong Hyuk Choi
86aa3728b9 referral mem leak fix 2004-09-14 01:03:08 +00:00
Pierangelo Masarati
431acda61b trying to make names consistent 2004-09-04 10:23:40 +00:00
Kurt Zeilenga
d611a4b49a unifdef -UNEW_LOGGING 2004-09-04 04:54:28 +00:00
Kurt Zeilenga
e0a9ea2f50 Move MSVC port to the Attic 2004-09-04 04:37:41 +00:00
Jong Hyuk Choi
76dfffafe4 fix for test019 glitch 2004-09-03 12:16:15 +00:00
Howard Chu
88e2771bca ITS#3309 better fix, add op->ord_csn in frontend and use it in backend. 2004-09-02 11:05:13 +00:00
Howard Chu
5c1c0902b4 ITS#3309 fix syncrepl psearch propagation of Delete operations 2004-09-01 03:23:36 +00:00
Luke Howard
8d1f26b7b6 Check for opinfo->boi_txn before using it - sometimes it is NULL even if
opinfo isn't
2004-08-26 10:17:53 +00:00
Luke Howard
739dcf2193 boi_bdb must be set 2004-08-26 05:27:59 +00:00
Howard Chu
05e7632c30 ITS#3301 fix prev commit, don't fail op on DB_NOTFOUND 2004-08-25 20:53:39 +00:00
Howard Chu
5cba217006 ITS#3301 check for dn2entry failure 2004-08-25 13:55:55 +00:00
Pierangelo Masarati
809e623cd9 add paged results support to back-ldap 2004-08-24 09:19:33 +00:00
Pierangelo Masarati
9f6f5491fe slightly rework user/operational attributes handling (including fixing a bug in the logic of the previous change to backend_operational()); cleanup; more improvements to slapo-rwm and back-relay 2004-07-25 23:16:40 +00:00
Howard Chu
d9927adf88 Fix ITS#3255, boi_bdb comparisons 2004-07-25 21:10:41 +00:00
Howard Chu
05fd32498d Fix spurious warning for fasttool keyword when running in Server mode 2004-07-25 19:49:24 +00:00
Howard Chu
dd7003cf9f Added linearindex option for slapindex. Improves performance when database
size exceeds dbcache size by minimizing cache thrashing.
2004-07-22 22:32:37 +00:00
Howard Chu
f9f22058e7 ITS#3178 add "fasttool" option to disable transaction logging in tool mode 2004-07-22 22:14:35 +00:00
Pierangelo Masarati
b94d5e17e2 rework op/rs structures to deal with opeartional attributes 2004-07-18 21:44:29 +00:00
Howard Chu
26b4758938 Make sure hdb gets signed chars for len comparison 2004-07-18 12:29:52 +00:00
Pierangelo Masarati
854863f0b6 normalize authcDN (ITS#3246); don't touch databases when running slapadd in dryryn mode (ITS#3244); release lock when acquiring entry in tool mode (ITS#3245) 2004-07-17 14:45:07 +00:00
Pierangelo Masarati
8d03d74bfd silence warning 2004-07-14 00:22:27 +00:00
Howard Chu
856a8c1177 Don't bother logging lock failures for tryOnly mode 2004-07-12 20:02:24 +00:00
Howard Chu
3fd4d04168 Release cache locker on db close 2004-07-12 14:29:13 +00:00
Howard Chu
214d3b26c1 Fix for non-thread run 2004-07-12 04:05:26 +00:00
Pierangelo Masarati
1b85d17afe minor cleanup 2004-07-11 22:55:57 +00:00
Pierangelo Masarati
4424b9d57f log what backend is starting (bdb/hdb) 2004-07-11 22:52:26 +00:00
Pierangelo Masarati
198b34db35 back-relay doesn't like this 2004-07-11 22:52:01 +00:00
Howard Chu
2d4f58bbf6 Make sure DB result codes are returned to caller; add missing retries to
callers of bdb_cache_find_id().
2004-07-10 19:06:20 +00:00
Pierangelo Masarati
8a9c5bb0f8 make sure we only get here when everything is fine 2004-07-10 11:41:28 +00:00
Howard Chu
22f895a4bb Minor cleanup 2004-07-10 04:48:07 +00:00
Howard Chu
e5ffb0c466 Use previously unused Backend->be_context_csn 2004-07-09 17:27:23 +00:00
Howard Chu
ebc8bb0d83 Use long-lived per-thread TXNs for loading entries from DB.
Make sure only one thread tries to load a given entry at a time.
Bump up the DB environment's max TXNs to accomodate the new TXNs.
2004-07-09 17:00:07 +00:00
Ralf Haferkamp
b8113c5df9 ITS#3226: Clear attribute flags after schema_check failed 2004-07-09 11:18:42 +00:00
Jong Hyuk Choi
70314bd98b SLAP_IDL_CACHE macro removed 2004-07-09 03:31:52 +00:00
Howard Chu
6b59008f26 Plug mem leaks 2004-07-05 21:00:09 +00:00
Howard Chu
5ab38cfa5f Better fix for ITS#3213, plug mem leaks. Also fix postread response. 2004-07-05 20:08:20 +00:00
Howard Chu
c3984d9f59 Plug memleak from ITS#2895 2004-07-04 04:56:36 +00:00
Howard Chu
56103a575b Fix misplaced unlock in prev commit 2004-07-03 21:06:34 +00:00
Howard Chu
473b8cb7db Re-order EntryInfo/DB locks to fix deadlocks 2004-07-03 20:03:14 +00:00
Howard Chu
42e0814247 Fix prev commit 2004-07-03 16:17:54 +00:00
Howard Chu
f696f7ab55 Fix: LRU corruption, HDB rename detection, Ctxcsn assert failure 2004-07-03 15:47:44 +00:00
Jong Hyuk Choi
a46d84544f cleanup 2004-07-01 22:40:03 +00:00
Pierangelo Masarati
e052d7297d `err' might be used uninitialized 2004-06-29 17:32:43 +00:00
Ralf Haferkamp
498530fc4c TS#3213: free copy of e_attrs before retrying the transaction in bdb_modify() 2004-06-29 14:52:03 +00:00
Jong Hyuk Choi
2adcccb27d logging psearch return code 2004-06-28 23:51:17 +00:00
Pierangelo Masarati
a7a90609a9 propagate search result (maybe this is not what bdb_psearch() is intended to do...) 2004-06-28 21:08:32 +00:00
Jong Hyuk Choi
08949463c5 - use ctxcsn_locker for the ctxcsn add transaction
- removal of LOCK_ID_FREE
- misc mem mgmt cleanup
2004-06-28 05:47:36 +00:00
Howard Chu
5fd7534f79 Fix previous commit, deleting under suffix... 2004-06-25 20:04:16 +00:00
Howard Chu
826b177877 More locking cleanup (ITS#3201, etc) 2004-06-25 05:29:33 +00:00
Howard Chu
3c68fc1f14 ITS#3201 fix conflict with BDB internal locks 2004-06-24 23:50:10 +00:00
Howard Chu
f7f6861a26 ITS#3201 fix conflict with BDB internal locks 2004-06-24 23:35:18 +00:00
Howard Chu
c63817b9bd ITS#3201 partial fix. still encountering deadlocks. 2004-06-24 17:56:43 +00:00
Kurt Zeilenga
8bca3b42f9 Rework pre/post read controls to handle retry conditions...
(and plug leaks)
2004-06-23 06:56:23 +00:00
Kurt Zeilenga
e23b0f677f Move pre/post read calls into outer transaction.
Need to fix retry handling.
2004-06-23 06:02:49 +00:00
Jong Hyuk Choi
ec9d21e094 use ltid if it exists; use NULL otherwise. 2004-06-23 05:10:18 +00:00
Jong Hyuk Choi
bc6b28a650 using write lock in accessing pslist 2004-06-23 02:07:12 +00:00
Jong Hyuk Choi
81c59404e9 use txn locker if it exists; get one otherwise. 2004-06-23 02:00:00 +00:00
Kurt Zeilenga
83476f2d98 Add pre-read FIXME comment 2004-06-22 23:44:35 +00:00
Jong Hyuk Choi
b459e59394 patch for ITS#3173
- passing transaction ptr to psearch
2004-06-22 23:22:16 +00:00
Kurt Zeilenga
18a68380f6 More paged results cleanup 2004-06-18 23:12:03 +00:00
Kurt Zeilenga
4b2fcbc14d Fix nentries logging 2004-06-18 23:10:26 +00:00
Kurt Zeilenga
aa9627e61c Don't return useless estimate. 2004-06-18 23:07:56 +00:00
Kurt Zeilenga
87c28866de cleanup 2004-06-16 23:49:35 +00:00
Pierangelo Masarati
a317f01dc1 improve pagedResults ignoring (hopefully) 2004-06-16 15:26:21 +00:00
Howard Chu
06f3bfb7f9 More for ITS#3188 2004-06-16 03:29:02 +00:00
Kurt Zeilenga
7537d3d843 Partial fix for ITS#3188.
As Howard noted, additional fixes may be needed in other update routines.
2004-06-15 21:13:40 +00:00
Pierangelo Masarati
ba3dde6d16 return pagedResultsControl with empty cookie at end of search (ITS#3161) 2004-06-12 18:22:53 +00:00
Howard Chu
8138b5258f ITS#3182 ? clear ctrls after sending paged response 2004-06-12 12:29:18 +00:00
Howard Chu
d57b404889 back-hdb fixes for ITS#3063 2004-06-12 12:27:22 +00:00
Pierangelo Masarati
d1b692ceb4 clarify no limits in (internal) searches 2004-06-12 11:33:21 +00:00
Howard Chu
7c7754b956 Better fix for ITS#3063, #3186 2004-06-12 07:39:24 +00:00
Howard Chu
9cf45220d2 ITS#3186 don't print error when empty DN "" is the only thing missing 2004-06-12 05:29:55 +00:00
Howard Chu
0b24ae9a12 Fix prev commit 2004-06-12 05:29:07 +00:00
Howard Chu
b9e3f66c7c Add glue for root DB (ITS#3063) 2004-06-12 04:31:17 +00:00
Howard Chu
591acac04f Another crash for ITS#3063 2004-06-12 03:25:15 +00:00
Kurt Zeilenga
ed4811039e cleanup 2004-06-09 05:20:57 +00:00
Pierangelo Masarati
0caf54b429 typo in error message 2004-05-07 21:53:44 +00:00
Pierangelo Masarati
d40e5a365a fix DN_SEPARATOR() and clarify its use 2004-05-07 09:03:05 +00:00
Pierangelo Masarati
80449c42d9 fix escaped semicolon bug in back-bdb 2004-05-07 02:09:06 +00:00
Kurt Zeilenga
1372965d89 ITS#3092: Rename sl_free() and friends to slap_sl_free() 2004-04-20 03:44:57 +00:00
Howard Chu
81bc7fcc8c Fix module link libraries 2004-04-17 15:12:20 +00:00
Pierangelo Masarati
7be90a7ddf remove unused structure member ps_id 2004-04-17 15:01:13 +00:00
Howard Chu
d5df8e3f40 Fix paged search initialization 2004-04-12 17:59:27 +00:00
Pierangelo Masarati
c0c24cfec5 first round of SHADOW flags/isupdate test unification 2004-04-10 10:00:58 +00:00
Kurt Zeilenga
071b9466c4 Fix approx matching when there is an equality index but no approx index.
Add better approx test
2004-04-09 21:30:55 +00:00
Pierangelo Masarati
2e13fbeea1 completion of limits w/ paged results control 2004-04-09 15:54:46 +00:00
Pierangelo Masarati
36941332a1 improve previous commit; now special limit on the number of total entries of a paged results can be set via the limits. Need to decide whether the default should be unlimited or what 2004-04-09 12:26:34 +00:00
Pierangelo Masarati
fadf3398d4 honor size limits when using paged results 2004-04-09 11:44:28 +00:00
Pierangelo Masarati
0505c64f08 blind fix to ITS#3069; I assume there's no reason to limit the sessionlog limit to 999 2004-04-09 11:22:07 +00:00
Howard Chu
c86e07dd25 Fix ITS#3063, special case handling of "" suffix 2004-04-08 12:15:26 +00:00
Kurt Zeilenga
c7f0438044 bvalue cleanup 2004-04-08 06:49:17 +00:00
Howard Chu
8c6fe48806 More dynamic/static cleanup 2004-04-08 05:58:54 +00:00
Howard Chu
f2e1df3ef7 Consolidated static/dynamic backend switches 2004-04-08 05:56:23 +00:00
Jong Hyuk Choi
1c1b2bb6ee updatedn fix for syncrepl 2004-04-07 17:32:37 +00:00
Howard Chu
0e2a12142a Zero out rs->sr_err before send_search_entry 2004-04-07 16:41:17 +00:00
Kurt Zeilenga
44725e7303 use BER_BVNULL 2004-04-07 04:11:43 +00:00
Kurt Zeilenga
f7d8d55d84 cleanup 2004-04-06 19:42:37 +00:00
Kurt Zeilenga
158e5727b4 ITS#3056 partial fix - from a slurpd perspective, the updatedn
should be allowed to the entry at the naming prefix (database suffix).
2004-04-06 19:32:17 +00:00
Pierangelo Masarati
a11dc61e05 rework be_isupdate accordingly to be_isroot 2004-04-06 09:42:40 +00:00
Kurt Zeilenga
c7e89d57be swap be_isroot and be_isroot_dn symbols 2004-04-06 01:06:20 +00:00
Kurt Zeilenga
2fcaa15b90 First rounds of backend/database flag cleanup 2004-04-05 21:00:16 +00:00
Pierangelo Masarati
e516247068 exploit new isroot_dn helper 2004-04-05 17:31:27 +00:00
Kurt Zeilenga
100facedf3 Don't return subordinate referrals (per RFC 3296) 2004-03-27 22:47:31 +00:00
Kurt Zeilenga
2876b3bb84 Don't disclose information to attacker.
Referrals need work (not sure why return referrals for bind requests)
2004-03-27 18:19:52 +00:00
Howard Chu
aec5d60620 Use REP_MATCHED_MUSTBEFREED reply flag 2004-03-20 09:24:01 +00:00
Kurt Zeilenga
e323437c6a cleanup for release engineering 2004-03-18 01:06:39 +00:00
Pierangelo Masarati
c0606cdfb7 reset flags (need to check consistence across slapd) 2004-03-17 09:59:04 +00:00
Howard Chu
e05b4b7db6 Cleanup result handling 2004-03-12 21:08:37 +00:00
Pierangelo Masarati
091246c6fd move limits evaluation to frontend 2004-03-08 18:12:45 +00:00
Howard Chu
48ac610097 ITS#3004 fix again 2004-03-06 19:16:20 +00:00
Howard Chu
113870c194 Revert to original code 2004-03-06 19:15:39 +00:00
Howard Chu
ea0d619dae Store IDs in BeigEndian format on disk 2004-03-06 12:41:29 +00:00
Howard Chu
ef7195fc31 Store IDs in BigEndian format on disk
bdb_idl_cache_put replaces existing entries instead of ignoring them
2004-03-06 12:41:00 +00:00
Howard Chu
23b2ce8b3a ITS#3004, fix IDL cache AVL comparisons 2004-03-06 12:29:19 +00:00
Howard Chu
efd23f5c0c Fix prev commit 2004-03-05 19:29:02 +00:00
Howard Chu
9b16d161d5 Take advantage of IDL cache in bdb_idl_insert/delete_key 2004-03-05 15:41:30 +00:00
Howard Chu
18bb805736 Fix prev commit 2004-03-05 15:40:37 +00:00
Howard Chu
c5d8c776ca Set IDL cache to 10x Entry cache by default 2004-03-05 13:46:12 +00:00
Howard Chu
896beebadc unifdef SLAP_IDL_CACHE 2004-03-05 13:43:18 +00:00
Howard Chu
896271195a ITS#2974 fix hole array allocation 2004-03-02 23:01:04 +00:00
Jong Hyuk Choi
4e3c30bbf0 misc addition to the previous glueing commit 2004-02-24 01:55:59 +00:00
Jong Hyuk Choi
372dcb78eb Glue entry pruning : delete parent entries after modrdn when they are glue and become leaf entry 2004-02-23 22:48:46 +00:00
Jong Hyuk Choi
0c58aa3ab9 Glue entry pruning support: delete the parent entries when they are glue and become leaf 2004-02-23 22:47:55 +00:00
Jong Hyuk Choi
53d191e14d syncrepl update: 1) improve error handling 2) glueing support for non-leaf deletion (TODO : deletion of leaf glue entries in the delete / modrdn code) 2004-02-22 20:44:44 +00:00
Pierangelo Masarati
4e57108991 allow search limits based on groups (ITS#2967) 2004-02-18 16:40:36 +00:00
Howard Chu
e0e3560cf5 Use Btree instead of Hash for indexing 2004-01-28 05:00:56 +00:00
Jong Hyuk Choi
d84a5d29ab Fix the missing delete problem (reported by Doug Council) 2004-01-27 18:16:40 +00:00
Howard Chu
36914d7be6 trim prev commit 2004-01-12 04:15:51 +00:00
Howard Chu
a8dbfd322a Really fix ITS#2905 2004-01-12 04:09:52 +00:00
Howard Chu
778516cc8c Fix ITS#2905, properly detect duplicate entries 2004-01-12 03:54:01 +00:00
Kurt Zeilenga
3c598e89fb Happy new year 2004-01-01 19:15:16 +00:00
Jong Hyuk Choi
0c0b29fc85 a patch for persistent search 2003-12-31 22:11:38 +00:00
Kurt Zeilenga
d3168d0011 cleanup 2003-12-31 04:26:17 +00:00
Kurt Zeilenga
7f59380c5e Quick hack for PSEARCH crash. 2003-12-31 04:26:07 +00:00
Kurt Zeilenga
45a0cbdfcd cleanup 2003-12-31 01:41:16 +00:00
Kurt Zeilenga
a3c1b64a73 Initial subordinate implementation (for chaining) 2003-12-30 03:53:03 +00:00
Kurt Zeilenga
2775c8d4a8 Update no-op control to return LDAP_NO_OPERATION instead of LDAP_SUCCESS.
(back-sql needs to be updated)
2003-12-29 23:31:39 +00:00
Kurt Zeilenga
fcad25da47 Misc code cleanup 2003-12-29 22:25:43 +00:00
Howard Chu
e6f34fddcd ITS#2895 TXN_PREPARE is not needed since we use nested transactions. It
also has a side-effect of releasing all the transaction's existing locks.
2003-12-24 13:27:03 +00:00
Howard Chu
93390425df ITS#2895 store a copy in the entry cache 2003-12-24 10:59:50 +00:00
Howard Chu
97edd9f83d Fix bogus "Internal error" when deleting non-existent entry 2003-12-24 10:58:11 +00:00
Pierangelo Masarati
ee34f3fb64 add to 'val[.<style>=<value>' ACLs special match styles for DN-valued attributes; add negated objectClass to attribute name lists for ACLs and partial replication 2003-12-16 00:49:10 +00:00
Jong Hyuk Choi
fa2aa5bb25 fix for concurrent persistent searches 2003-12-11 00:04:52 +00:00
Kurt Zeilenga
38ccdaf7a3 unifdef -DLDAP_CONTROL_PAGEDRESULTS (as it is always defined) 2003-12-08 18:16:07 +00:00
Howard Chu
0690f79a5a Cleanup unknown config directive handling. 2003-12-07 07:07:00 +00:00
Howard Chu
864aea13f7 ITS#2864 removed sl_mark/sl_release code 2003-12-07 04:00:47 +00:00
Howard Chu
b5052153c2 Minor cleanup 2003-12-07 03:59:54 +00:00
Howard Chu
59e129158c Removed passwd.c 2003-12-01 12:55:05 +00:00
Howard Chu
94f7141dda Consolidate passwd extop in frontend 2003-12-01 12:38:11 +00:00
Pierangelo Masarati
a4c5f54601 detect problems in saslauthz 2003-12-01 07:59:30 +00:00
Jong Hyuk Choi
0675a320d7 Fix copy & paste error. (ITS#2850) 2003-11-30 05:29:19 +00:00
Kurt Zeilenga
9f149d70f6 ITS#2847: fix syncCookie value_match 2003-11-30 03:30:39 +00:00
Hallvard Furuseth
3d522a0c9f Format %d -> %ld. 2003-11-29 17:26:23 +00:00
Kurt Zeilenga
9d811eb1fa Notices 2003-11-28 21:08:20 +00:00
Jong Hyuk Choi
4ae382fd79 misc updates
- syncrepl : id -> rid
 - man page update
2003-11-26 21:37:44 +00:00
Jong Hyuk Choi
1fdda703e6 Support multiple sync replication at the consumer :
1) simultaneous operation of multiple active sync replication threads
2) cookie management for individual sync replication thread
   (include rid=%3d to the slapd cookie command line option (-c))
2003-11-26 19:49:47 +00:00
Kurt Zeilenga
e3a4c4ec9c Notice/Acknowledge updates 2003-11-26 02:58:56 +00:00
Howard Chu
2bfb0bdeb8 Fix spurious lock messages from slapcat 2003-11-25 10:31:10 +00:00
Jong Hyuk Choi
f97dc983ac Collective entryUUID transmission of PRESENT messages in a single PDU
(refer to draft-zeilenga-ldup-sync-04.txt)
2003-11-20 02:14:47 +00:00
Howard Chu
e61748780b ITS#2816 init_module for dynamic HDB 2003-11-13 21:49:48 +00:00
Jong Hyuk Choi
f3586499d0 update ldapsync/syncrepl code according to the new version of
the protocol (draft-zeilenga-ldup-sync-04)
2003-11-11 20:25:19 +00:00
Jong Hyuk Choi
279760a467 1. Session history support
- memory based session history to minimize sync traffic
	- when client is covered by a session history, then
      [add+delete] mode is used
	- when client cookie is not covered by the history because
      the cookie is too outdated and/or the history is truncated,
	  [add+present] mode is used
2. Sync cookie syntax : comma separated name=value pairs
	- csn=yyyymmddhh:mm:ssZ#0xSSSS#r#ssssr,sid=nnn
2003-11-10 02:44:25 +00:00
Kurt Zeilenga
25f2985024 Don't return garbage when plist is empty. 2003-10-23 01:15:36 +00:00
Howard Chu
95a5866965 Shortcut syncrepl candidate selection if CSN is up to date 2003-10-22 07:53:28 +00:00
Kurt Zeilenga
ce4b199485 Syncrepl code cleanup (namely prefix struct field names) 2003-10-22 05:19:30 +00:00
Howard Chu
7710791382 ITS#2684 keep psearch operations on the connection's active list so they
can be located by connection_abandon() during an unexpected close. Remove
the operations in bdb_abandon() etc.
2003-10-19 11:20:34 +00:00
Howard Chu
56498a59dd ITS#2780, redundant cache add 2003-10-19 09:55:31 +00:00
Kurt Zeilenga
10622b1d0a Further cleanup last commit. 2003-10-12 07:31:31 +00:00
Kurt Zeilenga
535c221599 Tentative fix for last comment (tests still running) 2003-10-12 07:19:27 +00:00
Kurt Zeilenga
dfcd732813 ITS#2757: fix parent-less add bug 2003-10-12 06:32:44 +00:00
Kurt Zeilenga
71f484bad8 Finish off berbuf fix 2003-10-12 06:07:02 +00:00
Howard Chu
8c9f033aa5 Fix prev commit setting NO_GRANDKIDS incorrectly 2003-10-08 06:05:48 +00:00
Howard Chu
040a9cf64c Fix HDB's use of IDL cache 2003-10-03 02:19:09 +00:00
Hallvard Furuseth
8efd391832 #include "lutil.h", to get lutil_entropy(). Fix call to lutil_entropy(). 2003-09-29 23:33:39 +00:00
Hallvard Furuseth
b10daf623f Declare bdb_cache_entry_db_unlock(). 2003-09-29 23:32:11 +00:00
Howard Chu
dcbca288a9 ITS#2745 reset bei_state when reusing an EntryInfo 2003-09-29 22:01:03 +00:00
Howard Chu
dcd777b0b8 Fix hdb cursor leak. 2003-09-27 05:17:08 +00:00
Luke Howard
8c8c89b8a9 reinstate first argument to bdb_cache_delete_cleanup() 2003-09-27 05:12:17 +00:00
Howard Chu
121c73d838 Add EntryInfo free list 2003-09-27 04:58:36 +00:00
Luke Howard
283c310302 Fix tree breakage - bdb_cache_delete_cleanup() only takes one argument
???
2003-09-27 04:24:31 +00:00
Howard Chu
5c711a3b46 ITS#2741 yield before backing off 2003-09-27 03:16:38 +00:00
Jong Hyuk Choi
eee84463c0 do not cache internal search results for present entry priming 2003-09-25 07:49:50 +00:00
Jong Hyuk Choi
67b485e3ee revert changes for persistent search 2003-09-25 02:14:20 +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
c58ac9d8f1 Add memctx param to build_new_dn(). cleanup DN leaks. 2003-09-24 04:30:41 +00:00
Howard Chu
ece76c067f Silence valgrind warnings of uninit'd memory 2003-09-24 03:03:53 +00:00
Howard Chu
30f3b91ddc ITS#2735 - plug memory leaks 2003-09-23 22:52:35 +00:00
Howard Chu
772ce3b911 Plug a leak. 2003-09-23 17:14:01 +00:00
Howard Chu
d7771374e2 Fix alignment issues in hdb_dn2idl_internal 2003-09-23 10:55:57 +00:00
Howard Chu
99d2b7e7e9 Fix back-hdb test006 failures due to bad return code in hdb_dn2idl 2003-09-23 08:16:23 +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
365a3bac3f Tweak entry caching: only maintain LRU list on cached entries, not
on arbitrary EntryInfo.
2003-09-21 23:08:44 +00:00
Howard Chu
fddbe13c6e Revert broken index optimizations 2003-09-21 10:11:46 +00:00
Howard Chu
20902a2be3 Fix segfault if entry_get is called with NULL attribute 2003-09-20 07:48:57 +00:00
Howard Chu
f2c3ba16d6 cn=ldapsync berval cleanup 2003-09-20 03:26:40 +00:00
Luke Howard
9459a7f535 fix typo 2003-09-17 11:05:06 +00:00
Kurt Zeilenga
99f968b597 Initial support for pre/post read controls.
TODO:
	Fix transactional consistency
	Add client response control handling
2003-09-16 18:56:04 +00:00
Kurt Zeilenga
8f0bc2d55b cleanup 2003-09-15 21:53:58 +00:00
Howard Chu
aee837c999 More deadlock tweaks. 2003-09-14 10:27:59 +00:00
Howard Chu
61155ca8e8 Fix prev commit 2003-09-12 18:53:59 +00:00
Howard Chu
72adc38cdf Construct ctxcsn entries directly, plug memory leaks, remove
dependency on slap_mods_check and slap_mods2entry
2003-09-12 18:52:34 +00:00
Howard Chu
10811b6f51 Clarify/standardize library version mismatch error messages 2003-09-12 00:54:21 +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
005afc86e4 more EntryInfo handling fix code (overriding the prev fix) 2003-09-09 01:25:58 +00:00
Jong Hyuk Choi
4cda6127ee use of bdb_modify_internal() in bdb_csn_commit()
fix EntryInfo handling in bdb_csn_commit()
2003-09-08 22:55:04 +00:00