Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Never output a leading comma before non-transactional messages #101

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Never output a leading comma before non-transactional messages #101

wants to merge 1 commit into from

Conversation

gclinch
Copy link

@gclinch gclinch commented Feb 1, 2019

Non-transactional messages can arrive after a transaction commit but before the next begin. nr_changes is only reset to zero in begin_txn. Perhaps it would be safer to reset nr_changes in commit_txn instead?

@gclinch
Copy link
Author

gclinch commented Feb 18, 2019

wal2json generates invalid json when a non-transactional message is received immediately after a transaction commit if the transaction contained more than one change.

@eulerto eulerto added the bug label Mar 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants