Skip to content

Commit

Permalink
config: set the default value of OOMAction to OOMActionCancel (#18502)
Browse files Browse the repository at this point in the history
  • Loading branch information
XuHuaiyu authored Jul 14, 2020
1 parent b407487 commit 124388f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ var defaultConf = Config{
OOMUseTmpStorage: true,
TempStorageQuota: -1,
TempStoragePath: tempStorageDirName,
OOMAction: OOMActionLog,
OOMAction: OOMActionCancel,
MemQuotaQuery: 1 << 30,
EnableStreaming: false,
EnableBatchDML: false,
Expand Down
2 changes: 1 addition & 1 deletion config/config.toml.example
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ tmp-storage-quota = -1

# Specifies what operation TiDB performs when a single SQL statement exceeds the memory quota specified by mem-quota-query and cannot be spilled over to disk.
# Valid options: ["log", "cancel"]
oom-action = "log"
oom-action = "cancel"

# Enable coprocessor streaming.
enable-streaming = false
Expand Down

0 comments on commit 124388f

Please sign in to comment.