Skip to content

Commit

Permalink
tidb-server: check run-ddl is false when using mocktikv (pingcap#6781)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiancaiamao authored and jackysp committed Jun 8, 2018
1 parent 8e00ca9 commit 7029e5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tidb-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,10 @@ func validateConfig() {
log.Errorf("\"store\" should be in [%s] only", strings.Join(nameList, ", "))
os.Exit(-1)
}
if cfg.Store == "mocktikv" && cfg.RunDDL == false {
log.Errorf("can't disable DDL on mocktikv")
os.Exit(-1)
}
if cfg.Log.File.MaxSize > config.MaxLogFileSize {
log.Errorf("log max-size should not be larger than %d MB", config.MaxLogFileSize)
os.Exit(-1)
Expand Down

0 comments on commit 7029e5e

Please sign in to comment.