https://bugs.openldap.org/show_bug.cgi?id=9059
--- Comment #4 from Ondřej Kuzník ondra@mistotebe.net --- The response is triggered by https://git.openldap.org/openldap/openldap/-/blob/fd23680a447b9efe1a481dd64d... but it looks like the sessionlog has already been replayed correctly.
In that case, we are either finished or have a persistent search set up and all remaining responses are queued up to be sent, so we shouldn't even care if we can still find the CSN in the DB... Moving that whole `if` under `do_present == 1` should then be enough and it might not be related to bug 8125 at all.
But then I might be missing something.