-
Notifications
You must be signed in to change notification settings - Fork 842
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pgcdc: move all pg conn usage to a single goroutine
s.pgConn is not safe to use in multiple goroutines, so move all it's usage to the single goroutine that is emitting changes. This also allows us to do the annoying "remapping LSN for last message in a txn" locally which simplifies a lot of things and also should speed stuff up because we no longer need to wait for a txn to be acked before moving on to the next one.
- Loading branch information
Showing
1 changed file
with
88 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters