Commit Graph

453 Commits

Author SHA1 Message Date
Howard Chu
4b2c003907 More for ITS#5536 2008-05-29 23:31:05 +00:00
Howard Chu
5a97371ef3 ITS#5536 send SID for glued DBs as well as multimaster 2008-05-29 01:46:19 +00:00
Howard Chu
61a70b4f96 ITS#5403 fix sasl_ssf retrieval on 64 bit Solaris 2008-05-28 01:43:05 +00:00
Howard Chu
b2a0eb7075 Fix prev commit 2008-05-01 23:56:01 +00:00
Howard Chu
b94eac4778 Fix prev commit (again) - set in wrong order 2008-04-30 18:35:02 +00:00
Howard Chu
bdd493380d Fix prev commit 2008-04-30 12:52:45 +00:00
Howard Chu
4673c99e96 More for ITS#5470, add csns to presence search filter in MMR 2008-04-29 01:05:09 +00:00
Howard Chu
fd0699edf4 Fix typo in 1.389 2008-04-24 10:19:20 +00:00
Howard Chu
1af2849f7c ITS#5470 also ignore presentlist if number of CSNs don't match 2008-04-19 23:27:49 +00:00
Howard Chu
26c3fd67b8 ITS#5470 ignore presentlist on partial multimaster refreshes 2008-04-17 01:42:40 +00:00
Howard Chu
61b5f6d652 ITS#5454 regular mutex lock is safe 2008-04-11 12:12:06 +00:00
Howard Chu
d9dac0c8bc ITS#5376, #5378 delta-sync should fallback in other cases too 2008-04-09 12:01:11 +00:00
Howard Chu
8027d8afb0 ITS#5454 proposed fix. May still need to change initial trylock to a
regular mutex_lock.
2008-04-05 00:45:59 +00:00
Howard Chu
f2de258e3d ITS#5442 slapd_rq mutexes must always be used 2008-04-02 03:08:06 +00:00
Howard Chu
213c9358b8 ITS#5430 syncprov/glue can be used two different ways 2008-03-20 10:58:00 +00:00
Howard Chu
d3e8df3940 ITS#5432 fix compare_csns loop conditions 2008-03-20 00:10:31 +00:00
Howard Chu
d711b538ad do_syncrep1 always reads contextCSN from the main DB 2008-03-20 00:05:22 +00:00
Howard Chu
f77bd7ff6e ITS#5426 replace the entire contextCSN in updateCookie 2008-03-14 18:00:09 +00:00
Howard Chu
e3849e1a9c Fix prev commit, check for NULL syncCookie 2008-03-13 07:30:56 +00:00
Howard Chu
b101dab6c6 More fixes for syncCookie updating 2008-03-13 07:02:26 +00:00
Howard Chu
86c4dca647 Partially revert prev, redundant. 2008-03-13 05:41:12 +00:00
Howard Chu
af80427965 In mirrormode, also ask syncprov for initial cookie. It may have been
cached from a recent update.
2008-03-13 05:18:28 +00:00
Howard Chu
013f78090d ITS#5413 fix typo 2008-03-12 02:57:49 +00:00
Howard Chu
a287573d2d ITS#5407 more checks for pool pausing 2008-03-08 23:51:07 +00:00
Quanah Gibson-Mount
b2b8a3a0bf ITS#5376: Drop permissive modify, it isn't necessary 2008-02-13 19:02:57 +00:00
Howard Chu
ec5a7a9576 ITS#5376 must abandon current session before starting new refresh 2008-02-13 07:37:29 +00:00
Howard Chu
77618fae10 ITS#5376 modifies need to be permissive due to refresh/fallback sync 2008-02-13 07:09:18 +00:00
Howard Chu
947e3bbe1d ITS#5376 - deltasync must fallback for missing entries 2008-02-13 04:36:58 +00:00
Howard Chu
f26657d81c In do_syncrepl, don't wait if a previous syncrepl thread is still running. 2008-02-12 18:49:37 +00:00
Howard Chu
99e1adc1f2 Cleanup debug msg, check for redundant updates 2008-02-10 02:08:08 +00:00
Howard Chu
5cfa1386ea ITS#5362 syncrepl_updateCookie doesn't need to graduate_commit_csn, the
backends already do it.
2008-02-10 02:06:31 +00:00
Kurt Zeilenga
c890c96d13 Happy New Year (belated) 2008-01-08 00:19:56 +00:00
Pierangelo Masarati
20f2548c82 fix declarations of buffers for numeric strings; other related cleanup 2007-12-15 15:23:23 +00:00
Howard Chu
eb16972d23 Streamlined Winsock connection management 2007-11-26 17:03:26 +00:00
Howard Chu
8429013957 Fix test050 2007-11-20 14:56:20 +00:00
Howard Chu
82d4844b81 ITS#5231 don't maintain presentlist for entries added in Persist phase 2007-11-12 14:38:34 +00:00
Howard Chu
7404384766 Fix typo 2007-10-22 09:14:56 +00:00
Pierangelo Masarati
617bd11452 de-normalize simple filter values consistently 2007-10-05 09:49:19 +00:00
Howard Chu
3a1b56192d Fix syncrepl_entry to propagate cookieCSN when present 2007-10-05 09:03:44 +00:00
Pierangelo Masarati
471cd1d848 s/strtoul/strtol/ (ITS#5165) 2007-10-02 23:45:50 +00:00
Pierangelo Masarati
5653ab8338 don't malloc the berval separately for presentlist 2007-10-02 23:26:04 +00:00
Pierangelo Masarati
122b184a32 also log cookie parsing 2007-10-02 18:39:43 +00:00
Pierangelo Masarati
cf2cee553e back out hex RID 2007-10-02 18:08:41 +00:00
Pierangelo Masarati
e4036af0c8 remove potential buffer overflow, now that rids can be up to 4096 2007-09-29 16:11:28 +00:00
Howard Chu
d2179d885f Use attr_valfind instead of value_find_ex to optimize lookups 2007-09-24 05:02:31 +00:00
Howard Chu
e8c2414831 Preliminary sorted value support 2007-09-24 01:31:23 +00:00
Howard Chu
a3547e2758 More for a_numvals 2007-09-23 04:40:16 +00:00
Howard Chu
c4dbe1a274 Attribute/Modification value counters 2007-09-21 08:43:56 +00:00
Pierangelo Masarati
d92e8ad1f7 add helper for internal searchs for objectClass=* 2007-09-15 17:38:53 +00:00
Pierangelo Masarati
a09b4c5f20 log unknown message type 2007-09-13 17:54:15 +00:00
Howard Chu
c32e182c56 re: prev commit, init j 2007-09-09 14:25:34 +00:00
Pierangelo Masarati
04cf328716 make sure n,o are non-zero, so j is initialized (coverity) 2007-09-03 16:31:33 +00:00
Pierangelo Masarati
19330dc1cc allow shutdown while syncrepl_del_nonpresent() 2007-08-29 18:13:12 +00:00
Pierangelo Masarati
6fb9790a15 plug another leak (hope it's general enough) 2007-08-29 00:14:33 +00:00
Pierangelo Masarati
96767fee77 back out previous two commits 2007-08-28 23:13:29 +00:00
Pierangelo Masarati
c0f7dc78f7 fix uninit'ed var crasher 2007-08-28 23:00:36 +00:00
Pierangelo Masarati
5ed5bc5803 first round of CSN normalization consequences 2007-08-28 18:38:27 +00:00
Pierangelo Masarati
7dc7c60c4b improve previous commit; fix ITS#5108 by letting both SID and RID be 0..4095, input/output in decimal, but consistently handled in hexadecimals within CSN 2007-08-26 17:03:22 +00:00
Pierangelo Masarati
2132aa3b16 add support for CSNSIDMatch; use it to set contextCSN as appropriate when slapadd'ing -w 2007-08-26 15:39:45 +00:00
Howard Chu
6d9e2cac21 Fix prev commit 2007-08-25 16:00:15 +00:00
Howard Chu
a1c088ed02 ITS#5077 again 2007-08-25 15:40:39 +00:00
Pierangelo Masarati
96611ac703 getting an abnormal number of empty syncUUID... 2007-08-25 15:15:05 +00:00
Pierangelo Masarati
25d46e7578 rework controls API 2007-08-22 22:35:14 +00:00
Howard Chu
df2dcbcbe6 More for ITS#5077 2007-08-20 20:00:15 +00:00
Pierangelo Masarati
ca1aed557b make lutil_uuidstr_from_normalized() return the length of the string 2007-08-17 15:08:47 +00:00
Pierangelo Masarati
403704b7bc move uuid normalized to string to liblutil 2007-08-17 12:42:52 +00:00
Hallvard Furuseth
f5d1a15fec Remove lint 2007-08-16 14:41:48 +00:00
Pierangelo Masarati
1f3d88f32b recent check for syncrepl searchbase broke test048; fixing... 2007-08-13 20:51:42 +00:00
Howard Chu
cd47824bbb ITS#5077 fix attr_cmp loop termination 2007-08-10 23:10:59 +00:00
Howard Chu
856bf9bd48 ITS#5065 don't crash if old cookieCSN is sent 2007-08-10 22:52:04 +00:00
Pierangelo Masarati
caf89557ab syncrepl searchbase must be within the database naming context (ITS#5073) 2007-08-08 18:23:22 +00:00
Ralf Haferkamp
3a9310431e Reworked recent backend API changes, now using a separate struct,
(ConfigReply) for the error messages.
2007-08-03 12:02:07 +00:00
Howard Chu
f28d9e800f Fix mirrormode/tool mode 2007-07-14 00:12:47 +00:00
Howard Chu
88cbe052e0 Fallout from ITS#4986 - remove unused param of select_backend() 2007-07-13 03:18:20 +00:00
Howard Chu
10264919f4 Fix uninit'd op req DN 2007-06-19 13:07:12 +00:00
Howard Chu
299d19506a ITS#4933 use ldap_set_option for search timelimit 2007-06-19 11:49:50 +00:00
Pierangelo Masarati
9ff76148ab test goes __after__ done (ITS#5014 :) 2007-06-16 10:53:48 +00:00
Pierangelo Masarati
844f13fbe8 don't forget to log errors (ITS#5014) 2007-06-14 23:07:40 +00:00
Pierangelo Masarati
74ca4680db more ITS#4973 initialization 2007-05-19 14:12:24 +00:00
Hallvard Furuseth
93fbb87545 Give OperationBuffer normal struct members instead of using
LBER_ALIGNED_BUFFER(OPERATION_BUFFER_SIZE), as discussed in ITS#4078.
Add a corresponding SyncOperationBuffer in overlays/syncprov.c.
2007-05-18 23:54:26 +00:00
Howard Chu
8726062e1d Fix typo in prev commit 2007-05-10 20:15:40 +00:00
Howard Chu
2779af4730 ITS#4952 use memcmp to compare CSN values 2007-05-10 18:46:15 +00:00
Hallvard Furuseth
d72acf7250 Struct/array initializers must be constant expressions in C89 2007-05-09 19:09:32 +00:00
Howard Chu
626e9aabea coverity scan, ch_realloc won't return NULL 2007-05-08 14:01:16 +00:00
Howard Chu
97d0de6c1f ITS#4915 log failure retry status 2007-04-06 01:16:55 +00:00
Howard Chu
64000c5fc7 ITS#4904 fix delta-sync modlist free 2007-04-02 21:22:43 +00:00
Pierangelo Masarati
639d678592 cleanup struct declarations 2007-03-20 01:07:10 +00:00
Pierangelo Masarati
5ed0fc3749 re-fix previus commit the other way 'round (rids are < 1000) 2007-02-24 18:29:55 +00:00
Pierangelo Masarati
b0f63112be fix type/format mismatch 2007-02-24 18:00:46 +00:00
Howard Chu
06212e9de9 Plug leaks 2007-02-16 02:22:24 +00:00
Howard Chu
7dc2199bfd Fix rev 1.312 2007-02-14 00:08:26 +00:00
Howard Chu
59d4b38a7c syncinfo_free must be able to free multiple syncinfos 2007-02-13 14:35:53 +00:00
Howard Chu
ab2a55d222 Coverity error 2007-02-13 11:03:41 +00:00
Howard Chu
c5b33893f0 Fix fetching of initial contextCSN, updating from syncprov 2007-02-07 06:26:22 +00:00
Howard Chu
04f46aa880 ITS#4832 fix unint'd var 2007-02-07 00:41:15 +00:00
Howard Chu
3f20aa245f Partially revert prev commit, delete unused parameter, fix psearch response 2007-02-06 05:58:01 +00:00
Howard Chu
1403491288 Fixes for glue and persist chaining 2007-02-06 05:29:00 +00:00
Howard Chu
d87d11eb09 Add a debug message when skipping an old entry. 2007-02-06 00:06:09 +00:00
Howard Chu
250cbd286a Optimization: send sid in cookie to avoid getting our changes sent
back to us.
2007-02-05 23:10:22 +00:00
Howard Chu
2432378de8 Fix compare_csns to accept new cookie when there are more CSNs than
we knew about before
2007-02-05 11:03:36 +00:00