mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
[FIXED] Account resolver lock inversion
There was a lock inversion but low risk since it happened during server initialization. Still fixed it and added the ordering in locksordering.txt file. Also fixed multiple lock inversions that were caused by tests. Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
@@ -281,6 +281,25 @@ var jsMixedModeGlobalAccountTempl = `
|
||||
|
||||
var jsGWTempl = `%s{name: %s, urls: [%s]}`
|
||||
|
||||
var jsClusterAccountLimitsTempl = `
|
||||
listen: 127.0.0.1:-1
|
||||
server_name: %s
|
||||
jetstream: {max_mem_store: 256MB, max_file_store: 2GB, store_dir: '%s'}
|
||||
|
||||
cluster {
|
||||
name: %s
|
||||
listen: 127.0.0.1:%d
|
||||
routes = [%s]
|
||||
}
|
||||
|
||||
no_auth_user: js
|
||||
|
||||
accounts {
|
||||
$JS { users = [ { user: "js", pass: "p" } ]; jetstream: {max_store: 1MB, max_mem: 0} }
|
||||
$SYS { users = [ { user: "admin", pass: "s3cr3t!" } ] }
|
||||
}
|
||||
`
|
||||
|
||||
func createJetStreamTaggedSuperCluster(t *testing.T) *supercluster {
|
||||
return createJetStreamTaggedSuperClusterWithGWProxy(t, nil)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user