Howard Chu
c1912fb7af
ITS#9121 don't process nested memberOf if memberOf wasn't requested
2020-10-13 22:11:44 +01:00
Howard Chu
fb587d3d58
ITS#9361 prevent CSN from being generated for purge deletes
2020-10-02 13:25:52 +01:00
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
Howard Chu
80a545b5ed
Partially Revert "ITS#8486 use kbtree for sessionlog"
...
This mostly reverts commit 1915cb968a .
Too many concurrency issues. Retains the improvement to
syncprov_sessionlog_cmp
2020-09-30 15:11:31 +00:00
Howard Chu
2bbb51e20b
ITS#9358 Fix reqStart normalizer
...
Don't truncate trailing zeroes in reqStart/reqEnd timestamps
2020-09-29 09:43:37 +01:00
Ondřej Kuzník
67d005ee65
ITS#9348 Stop using plain strerror()
2020-09-25 12:47:46 +01:00
Quanah Gibson-Mount
f3e86d3d93
ITS#8636 - Fix DESC for deltaCRL attribute
2020-09-25 04:29:59 +00:00
Quanah Gibson-Mount
fe3636df9d
ITS#8341 - Add matching rule to the namingContexts attr
2020-09-25 02:05:55 +00:00
Howard Chu
1915cb968a
ITS#8486 use kbtree for sessionlog
...
Saves about 20% CPU time and RAM
2020-09-25 00:07:50 +00:00
Ondřej Kuzník
98d5c5c6ce
ITS#8486 Protect tavl_* calls in play_sessionlog
2020-09-25 00:07:50 +00:00
Howard Chu
8f8774c0b1
ITS#8486 Minor play_sessionlog cleanup
...
Fix logmsg uuidstr.
Shortcut finding start of playback.
Allow dup CSNs in log, but with different UUIDs. All
non-present deletes in a refresh use the same CSN.
2020-09-25 00:07:50 +00:00
Ondřej Kuzník
d2036cec90
ITS#8486 Switch sessionlog to use TAVL
2020-09-25 00:07:50 +00:00
Ondřej Kuzník
3f5293e145
ITS#5422 Save errno before passing it to Debug()
2020-09-24 23:34:36 +00:00
Howard Chu
c3131eb5a3
ITS#9348 replace all uses of STRERROR with AC_STRERROR_R
...
Avoid using sys_errlist unless there's no other choice
2020-09-24 23:34:36 +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
Quanah Gibson-Mount
a3f186880c
ITS#9351 - Always build back-monitor as a static backend
2020-09-21 16:52:33 +00:00
Howard Chu
dd82fa5393
ITS#9353 fix monitor_back_register_database for empty suffix DB
...
Use the correct database entry instead of the frontendDB entry
2020-09-20 16:29:38 +01:00
Quanah Gibson-Mount
bc021bb244
ITS#6749 - Change configure monitor warning to DEBUG CONFIG instead of DEBUG ANY
2020-09-18 14:56:43 +00:00
Howard Chu
331e587754
ITS#9352 syncrepl: fix syncrepl_op_modify on entry with no entryCSN
2020-09-17 20:18:20 +01:00
Gabriel Buades
984ecd113a
ITS#9349 slapd-mdb: optimize index delete
...
Performance improvement for indexed attributes removal
2020-09-17 18:21:53 +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
afc970b11d
ITS#9015 syncprov: fix for zero-length suffix
...
If the "" glue entry exists and lacks a contextCSN, must perform
an additional search to be sure the DB is otherwise empty. If so,
skip creating the contextCSN.
2020-09-15 12:08:22 +01:00
Howard Chu
9a3e63ba00
ITS#9338 alternate fix
...
Don't resume pending ops unless there are no other threads
waiting to write
2020-09-13 08:05:31 +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
ef2b505b20
ITS#9043 Fix new log msg crashes
...
Solaris stdio hates NULL pointers
2020-09-11 23:36:41 +00:00
Howard Chu
fdf6ee5059
ITS#8054 fix etime calculation
...
Was overlooked in a0cc1d9655
2020-09-11 23:01:16 +00: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
Ondřej Kuzník
eb5f138650
ITS#9043 Only print sessionlog entries we think will apply
2020-09-10 11:04:29 +01:00
Ondřej Kuzník
fdbeb69fd8
ITS#9043 Nul-terminate csn string
2020-09-10 11:03:37 +01: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
d1283f8161
ITS#9339 slapd-monitor: Add schema arc for overlays
...
Not directly related to syncrepl, but adds a necessary schema arc.
Also add a convenience function for obtaining an entry with known ndn.
Also fix to ignore outbound connections.
2020-09-10 02:29:19 +00:00
Howard Chu
bf40306581
ITS#9043 tweak syncprov play_sessionlog logging
...
Don't log cookiecsn at top, it was already logged on receipt.
Only log the "control csn" and "too old" message once for each sid.
2020-09-09 18:02:49 +01: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
95c5a1698b
ITS#9338 Make sure connection gets rescheduled after write blockage clears up
2020-09-04 18:22:40 +01:00
Howard Chu
0b20b92ec1
ITS#9338 syncrepl: Don't reuse existing connection on Refresh fallback
2020-09-04 18:22:32 +01:00
Howard Chu
ed356c55d9
ITS#9334 slapo-ppolicy re-fix ITS#9302
...
The mutex_lock was being skipped in the lockout case,
but still calling mutex_unlock at the end.
2020-09-03 21:30:35 +01:00
Howard Chu
b24ca75993
ITS#9201 fix LDAP_THREAD_DEBUG
...
Add missing defs to ldap_thr_debug.h.
slap tools must init libldap so internal mutexes get inited.
2020-09-03 12:37: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
4c7787303c
ITS#9121 fix for URLs with no filter
2020-09-02 01:34:07 +01: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