Skip to content

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

Open
gclinch wants to merge 1 commit into
eulerto:masterfrom
gclinch:nr_changes
Open

Never output a leading comma before non-transactional messages#101
gclinch wants to merge 1 commit into
eulerto:masterfrom
gclinch:nr_changes

Conversation

@gclinch

@gclinch gclinch commented Feb 1, 2019

Copy link
Copy Markdown

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

gclinch commented Feb 18, 2019

Copy link
Copy Markdown
Author

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.

2 participants