https://bugs.openldap.org/show_bug.cgi?id=9705
--- Comment #2 from gil77for@gmail.com --- If you enable DEBUG_MERGE_STATE you can see the following in provider logs:
..... 61515c46 slap_get_csn: conn=1002 op=7 generated new csn=20210927055310.094047Z#000000#001#000000 manage=1 61515c46 slap_queue_csn: queueing 801CBFE0 20210927055310.094047Z#000000#001#000000 61515c46 oc_check_required entry (olcDatabase={1}ldif,cn=config), objectClass "olcLdifConfig" ..... 61515c58 slap_get_csn: conn=1006 op=3 generated new csn=20210927055328.891143Z#000000#001#000000 manage=1 61515c58 slap_queue_csn: queueing 80C53840 20210927055328.891143Z#000000#001#000000 61515c58 ldif_write_entry: wrote entry "olcDatabase={1}mdb,cn=config,cn=consumer" ..... merge_state: rid=001 si_syncCookie [0] 0 20210927055310.002047Z#000000#000#000000 merge_state: rid=001 si_syncCookie [1] 1 20210927055310.094047Z#000000#001#000000 merge_state: rid=001 si_cookieState [0] 0 20210927055310.002047Z#000000#000#000000 merge_state: rid=001 si_cookieState [1] 1 20210927055328.891143Z#000000#001#000000 .....
The next step is the si_cookieState[1] will override si_syncCookie[1]!