Remove auto-promotion of direct get. Force stream config to set AllowDirect to true.

Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
Derek Collison
2022-09-06 08:42:29 -07:00
parent f190b6b6f4
commit b850a95d4c
3 changed files with 37 additions and 66 deletions

View File

@@ -3294,6 +3294,7 @@ func TestJetStreamSuperClusterMirrorInheritsAllowDirect(t *testing.T) {
Subjects: []string{"key.*"},
Placement: &nats.Placement{Tags: []string{"cloud:aws", "country:us"}},
MaxMsgsPerSubject: 1,
AllowDirect: true,
})
require_NoError(t, err)