Skip to content

Commit

Permalink
[FIXED] Panic on nil sysAcc
Browse files Browse the repository at this point in the history
Signed-off-by: Maurice van Veen <github@mauricevanveen.com>
  • Loading branch information
MauriceVanVeen committed Nov 4, 2024
1 parent 633bb94 commit f03a58d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/jetstream_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,9 @@ func (js *jetStream) setupMetaGroup() error {

// Setup our WAL for the metagroup.
sysAcc := s.SystemAccount()
if sysAcc == nil {
return errors.New("no system account")
}
storeDir := filepath.Join(js.config.StoreDir, sysAcc.Name, defaultStoreDirName, defaultMetaGroupName)

js.srv.optsMu.RLock()
Expand Down

0 comments on commit f03a58d

Please sign in to comment.