Skip to content

Commit

Permalink
Don't send metaleader snapshot as normal entry on leader change
Browse files Browse the repository at this point in the history
Signed-off-by: Neil Twigg <neil@nats.io>
  • Loading branch information
neilalexander committed Feb 1, 2024
1 parent 9c738ec commit 9cbe307
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions server/jetstream_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -1357,10 +1357,6 @@ func (js *jetStream) monitorCluster() {
aq.recycle(&ces)

case isLeader = <-lch:
// For meta layer synchronize everyone to our state on becoming leader.
if isLeader {
n.SendSnapshot(js.metaSnapshot())
}
// Process the change.
js.processLeaderChange(isLeader)
if isLeader {
Expand Down

0 comments on commit 9cbe307

Please sign in to comment.