Skip to content

Commit

Permalink
logictest: only purge zone configs for in-memory test clusters
Browse files Browse the repository at this point in the history
This commit backports code needed to fix #104466.

Informs: #104466

Release note: None
  • Loading branch information
Mark Sirek committed Jun 29, 2023
1 parent c0b01fc commit 59d8113
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/sql/logictest/logic.go
Original file line number Diff line number Diff line change
Expand Up @@ -2301,6 +2301,10 @@ func fetchSubtests(path string) ([]subtestDetails, error) {
}

func (t *logicTest) purgeZoneConfig() {
if t.cluster == nil {
// We can only purge zone configs for in-memory test clusters.
return
}
for i := 0; i < t.cluster.NumServers(); i++ {
sysconfigProvider := t.cluster.Server(i).SystemConfigProvider()
sysconfig := sysconfigProvider.GetSystemConfig()
Expand Down

0 comments on commit 59d8113

Please sign in to comment.