Commit Graph

864 Commits

Author SHA1 Message Date
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