Documentation ¶
Index ¶
Constants ¶
View Source
const ( UnspecifiedKillSignal killSignal = iota QueryInterrupted MaxExecTimeExceeded QueryMemoryExceeded ServerMemoryExceeded )
KillSignal types.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQLKiller ¶
type SQLKiller struct { Signal killSignal ConnID uint64 }
SQLKiller is used to kill a query.
func (*SQLKiller) HandleSignal ¶
HandleSignal handles the kill signal and return the error.
func (*SQLKiller) SendKillSignal ¶
func (killer *SQLKiller) SendKillSignal(reason killSignal)
SendKillSignal sends a kill signal to the query.
Click to show internal directories.
Click to hide internal directories.