Unverified Commit 2a1c7788 authored by Dimitri Fontaine's avatar Dimitri Fontaine Committed by GitHub
Browse files

Update pgcopydb sentinel in the main follow process. (#521)

* Update pgcopydb sentinel in the main follow process.

To avoid infinite looping when endpos has been reached it's important to
update our endpos value to the sentinel's one even in the main follow
process.

In passing, review some error messages.

Also refrain from stopping early from reading data from a PIPE when a
terminating signal is received, we should finish reading as per the comments
in the code.

* Process ENDPOS in transform and replay processes.

When the ENDPOS internal message is received from the PIPEs in replay mode,
check the current sentinel.endpos value on the source database to make sure
the ENDPOS message matches with the current setting, and that being the case
stop processing.
parent 86e7de42
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment