mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-17 11:24:44 -07:00
[FIXED] JetStream: reject stream update with changes to RePublish
The update was not rejected, yet the republish update was not taking place. Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
@@ -1272,6 +1272,10 @@ func (jsa *jsAccount) configUpdateCheck(old, new *StreamConfig, s *Server) (*Str
|
||||
if !reflect.DeepEqual(cfg.Mirror, old.Mirror) {
|
||||
return nil, NewJSStreamMirrorNotUpdatableError()
|
||||
}
|
||||
// Can't change RePublish
|
||||
if !reflect.DeepEqual(cfg.RePublish, old.RePublish) {
|
||||
return nil, NewJSStreamInvalidConfigError(fmt.Errorf("stream configuration update can not change RePublish"))
|
||||
}
|
||||
|
||||
// Do some adjustments for being sealed.
|
||||
if cfg.Sealed {
|
||||
|
||||
Reference in New Issue
Block a user