Skip to content

Commit

Permalink
Don't warn on system id = 0 in walproposer greeting.
Browse files Browse the repository at this point in the history
sync-safekeepers doesn't know it and sends 0.
  • Loading branch information
arssher committed Jun 7, 2023
1 parent c058e1c commit 6b3c020
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion safekeeper/src/safekeeper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,8 @@ where
}

// system_id will be updated on mismatch
if self.state.server.system_id != msg.system_id {
// sync-safekeepers doesn't know sysid and sends 0, ignore it
if self.state.server.system_id != msg.system_id && msg.system_id != 0 {
if self.state.server.system_id != 0 {
warn!(
"unexpected system ID arrived, got {}, expected {}",
Expand Down

1 comment on commit 6b3c020

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1067 tests run: 1021 passed, 0 failed, 46 skipped (full report)


The comment gets automatically updated with the latest test results
6b3c020 at 2023-06-07T10:26:49.203Z :recycle:

Please sign in to comment.