Skip to content

Commit

Permalink
fix servertime bug (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
stlava authored Dec 15, 2023
1 parent 0a9c5e3 commit 5925ff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion replication/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func XLogDataToWalMessage(xld pglogrepl.XLogData) (*WalMessage, error) {
uint64(xld.WALStart),
uint64(xld.ServerWALEnd),
// Note that in current postgres versions (9,10,11) ServerTime is unset and comes through as 0
int64(xld.ServerTime.Second()),
xld.ServerTime.UnixMilli(),
"",
pr,
"",
Expand Down

0 comments on commit 5925ff8

Please sign in to comment.