-
-
Save msirek/c2cfae90384fa4a398e8ad727dda5e59 to your computer and use it in GitHub Desktop.
Mutation checking loop re-checks the cluster setting on each iteration.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for tableID, rowsAffected := range mutationCounts { | |
// Check the cluster setting and table setting before each refresh | |
// in case it was disabled recently. | |
var enabledForTable bool | |
if enabled, ok := autoStatsEnabledForTable[tableID]; ok { | |
if !enabled { | |
break | |
} | |
enabledForTable = true | |
} else if !AutomaticStatisticsClusterMode.Get(&r.st.SV) { | |
if len(autoStatsEnabledForTable) == 0 { | |
break | |
} else { | |
continue | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment