Fix for JS reload and exports

Signed-off-by: Waldemar Quevedo <wally@synadia.com>
This commit is contained in:
Waldemar Quevedo
2021-03-14 15:16:56 -07:00
parent 5072649540
commit 775afd01e7
3 changed files with 4 additions and 2 deletions

View File

@@ -828,6 +828,9 @@ func (s *Server) addSystemAccountExports(sacc *Account) {
if err := sacc.AddServiceExport(accSubsSubj, nil); err != nil {
s.Errorf("Error adding system service export for %q: %v", accSubsSubj, err)
}
if s.JetStreamEnabled() {
s.checkJetStreamExports()
}
}
// accountClaimUpdate will receive claim updates for accounts.

View File

@@ -333,7 +333,6 @@ func (s *Server) DisableJetStream() error {
}
// Once here we can forward our proposal to remove ourselves.
meta.ProposeRemovePeer(meta.ID())
time.Sleep(250 * time.Millisecond)
meta.Delete()
}
}

View File

@@ -1,4 +1,4 @@
// Copyright 2017-2020 The NATS Authors
// Copyright 2017-2021 The NATS Authors
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at