Howard Chu
56860fc405
ITS#9342 delta-syncL ignore add of already existing entry
...
if the entryCSN is older. Previous patch breaks if writes are
received out of order, e.g. during a refresh.
2020-10-01 14:27:24 +01:00
Ondřej Kuzník
efc23cddc3
ITS#9295 Do not replace 'op'
2020-09-30 18:55:34 +00:00
Ondřej Kuzník
20024d5ba8
ITS#9359 Do not create an empty add
2020-09-30 19:25:56 +01:00
Howard Chu
ed949bf287
ITS#9342 delta-sync: ignore add if entryCSN is too old
...
This check is only needed for ops received without a CSN in their cookie.
This only occurs when the ops completed out of order on the provider.
2020-09-30 15:45:04 +00:00
Ondřej Kuzník
1b8e6b944b
ITS#9355 Propagate errors from overlay_entry_get_ov
2020-09-23 11:10:29 +01:00
Howard Chu
62ecd38bc4
ITS#8102 syncrepl: only use trylock on the cn=config DB
2020-09-22 21:27:15 +01:00
Howard Chu
331e587754
ITS#9352 syncrepl: fix syncrepl_op_modify on entry with no entryCSN
2020-09-17 20:18:20 +01:00
Howard Chu
2b512ea79c
ITS#9339 Fix syncrepl_monitor_init for dynamic monitor backend
...
Calling from backend.c only works if back-monitor is a static backend
2020-09-17 15:22:01 +01:00
Howard Chu
3e181b8453
Silence stupid warnings
2020-09-16 23:27:45 +01:00
Quanah Gibson-Mount
947b8ed9d6
Fix code indentation for recent changes
2020-09-16 21:13:28 +00:00
Howard Chu
d63287e2f4
ITS#9345 fix for cmdline cookie
...
Previous commit could cause cmdline cookie to be ignored
2020-09-15 15:00:57 +00:00
Howard Chu
57643b4347
ITS#9345 syncrepl: call check_syncprov on freshly started consumer
2020-09-12 21:44:31 +01:00
Howard Chu
72bfa9d488
ITS#9339 fix connection address handling
...
valgrind didn't like accesses to si->si_connaddr
Also fix an array bounds check in ITS#9282 merge_state
2020-09-10 17:03:32 +00:00
Howard Chu
490273fb97
ITS#8102, #9330 partially revert
...
Fix a regression in delta-sync, was returning error on old
CSNs instead of ignoring them
2020-09-10 16:17:13 +00:00
Howard Chu
1748ec59a6
ITS#9339 Add syncrepl status to cn=monitor
...
Shows connection address, refresh/persist state, time of last
connect attempt and received data, and last sent and
received cookies per consumer.
2020-09-10 02:29:19 +00:00
Howard Chu
e02b1d94ca
ITS#8102 serialize plain syncrepl
...
Using cs_pmutex. Reverts the addition of cs_modmutex in ITS#9330,
use cs_pmutex for both delta and plain writes.
Note that plain syncrepl already used cs_pmutex when a cookie CSN
was present in the op. Now it is used for all writes, regardless
of presence of cookie.
2020-09-09 15:35:59 +00:00
Howard Chu
8bd2d1fee8
ITS#9342 delta-sync: ignore error if deleting an already deleted entry
2020-09-09 00:19:35 +01:00
Howard Chu
0b20b92ec1
ITS#9338 syncrepl: Don't reuse existing connection on Refresh fallback
2020-09-04 18:22:32 +01:00
Quanah Gibson-Mount
b51faa5cf0
Revert "Tweak prev commit for RE24 style debug"
...
This reverts commit d224e576a9 .
Revert, wrong branch
2020-09-02 19:33:03 +00:00
Quanah Gibson-Mount
d224e576a9
Tweak prev commit for RE24 style debug
2020-09-02 19:31:59 +00:00
Howard Chu
41396248a2
ITS#9282 more for merge_state
...
Don't assume si_cookieState is always newer
2020-08-31 20:09:52 +01:00
Howard Chu
8699e5f32e
ITS#9282 fix crash in nonpresent_callback
...
In a standard Refresh present phase, the provider sends no cookie
since it is only listing the entries that existed as of the time
in the cookie the consumer sent. In this case the consumer only
needs to check entryCSNs against its last sent cookie.
2020-08-31 19:36:10 +01:00
Howard Chu
0ce83b26af
ITS#9330 Fully serialize delta-sync
...
Don't depend on accesslog overlay's serialization
2020-08-29 01:13:04 +00:00
Howard Chu
9900794af1
ITS#9329 Re-fix merge_state
...
A bit uglier but more straightforward.
2020-08-26 21:00:00 +01:00
Howard Chu
9666306d86
ITS#9329 syncrepl: fix regression from ITS#9282
2020-08-25 21:13:22 +00:00
Howard Chu
5aa7e0f69b
ITS#9324 syncrepl: don't wait forever in Refresh mode
...
Just poll for available data, same as Persist mode.
Clarify retry/return states from do_syncrep2
2020-08-24 15:12:24 +00:00
Howard Chu
4cf90e84de
ITS#9295 use replace on single-valued attrs
...
For delta-sync as well as regular sync
2020-07-29 16:15:42 +01:00
Ondřej Kuzník
4b62f3b8d2
ITS#8645 Check for all syncrepl errors
2020-07-22 20:22:50 +00:00
Quanah Gibson-Mount
3716245fec
Issue#8511 - Update documentation and configs to correctly use multiprovider
2020-07-22 19:32:49 +00:00
Ondřej Kuzník
521b8bbe4b
ITS#9282 Check entries are covered by new contextCSN before deletion
2020-07-22 18:24:52 +00:00
Ondřej Kuzník
5bbcf38c78
ITS#9282 Build a complete cookie for the search
2020-07-22 18:24:51 +00:00
Quanah Gibson-Mount
21eef84a49
ITS#9275 -- Update wording to remove slave and master terms, consolidate on provider/consumer
2020-07-18 16:27:04 +00:00
Ondřej Kuzník
182ec30a6b
ITS#8768 Accept delcsn from the server
2020-06-23 16:06:09 +00:00
Ondřej Kuzník
d1e874c605
ITS#8768 Introduce delcsn into our syncrepl cookies
2020-06-23 16:06:09 +00:00
Howard Chu
f5ff1dad7e
ITS#9227 fix attr / opattr detection in prev commit
2020-05-08 18:50:58 +01:00
Howard Chu
5462fc26b5
ITS#9227 syncrepl: don't delete non-replicated attrs
2020-05-08 16:23:44 +01:00
Quanah Gibson-Mount
bc9a92866a
ITS#6740 - Always enable rewrite
2020-04-22 14:49:10 +00:00
Ondřej Kuzník
f6d9fdc4f1
ITS#9043 Improve replication loggging
2020-04-14 09:58:03 +01:00
Quanah Gibson-Mount
0dbbe8c012
ITS#8040 - Fix missing ifdefs for LAZY_COMMIT
2020-02-02 19:00:34 +00:00
Quanah Gibson-Mount
707d2a9211
ITS#8966 - Remove DO_DSEE ifdef Remove ifdef for DO_DSEE as it's required to be defined for syncrepl.c to compile
2020-02-02 19:00:31 +00:00
Quanah Gibson-Mount
f6ad222e41
Happy New Year!
2020-01-09 16:50:21 +00:00
Ondřej Kuzník
7ca538ff87
ITS#9015 Treat an empty cookie from a FALLBACK search as a success
2019-05-08 15:42:12 +01:00
Howard Chu
47102fcced
Add persist support
2019-03-20 08:47:48 -07:00
Ondřej Kuzník
76df74dbea
ITS#8731 Apply doc/devel/variadic_debug/07-shortcut.cocci
2019-02-15 16:51:53 +00:00
Ondřej Kuzník
97a310b312
ITS#8731 Apply doc/devel/variadic_debug/04-variadic.cocci
2019-02-15 16:51:53 +00:00
Howard Chu
e8c62bf8b4
ITS#8966 add changelog support to syncrepl consumer
...
Tested against DSEE7. The DSEE binaries must be in your path to run the test script.
2019-01-29 18:51:43 -08:00
Quanah Gibson-Mount
b45a6a7dc7
Happy New Year!
2019-01-14 18:46:16 +00:00
Howard Chu
ff6a671e64
MSAD dirsync fixes
...
Don't hijack whenCreated attribute for createTimestamp
Don't add RDN to entry on modrdn
free cookie on cleanup
2018-12-22 09:08:10 -08:00
Howard Chu
b4364baca7
Dirsync delete/modrdn fixes
...
Delete could try to queue a NULL syncCSN (dirsync has none)
Modrdn could try to delete a nonexistent oldRDN (leftover from #7144 )
2018-12-22 05:21:56 -08:00
Howard Chu
9cc97ea9e1
MS AD DirSync support
...
Requires "attribute_option range=" in config.
No test script provided yet, since testing requires an actual AD server.
2018-12-17 16:11:25 -08:00