Skip to content

Commit 371aca2

Browse files
committed
Warn when combining --panic-on-warnings and --exact-rowcount
1 parent c62b1e2 commit 371aca2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

go/cmd/gh-ost/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,9 @@ func main() {
316316
if migrationContext.CheckpointIntervalSeconds < 10 {
317317
migrationContext.Log.Fatalf("--checkpoint-seconds should be >=10")
318318
}
319+
if migrationContext.CountTableRows && migrationContext.PanicOnWarnings {
320+
migrationContext.Log.Warning("--exact-rowcount with --panic-on-warnings: row counts cannot be exact due to warning detection")
321+
}
319322

320323
switch *cutOver {
321324
case "atomic", "default", "":

0 commit comments

Comments
 (0)