File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,23 +119,11 @@ func (db *Database) parseMariaDBHeader(line string, q *query.Query) {
119119 } else if strings .Contains (part , "schema:" ) {
120120 q .Schema = parts [idx + 1 ]
121121
122- } else if strings .Contains (part , "QC_hit " ) {
122+ } else if strings .Contains (part , "qc_hit: " ) {
123123 q .QC_hit = true
124124 if parts [idx + 1 ] == "No" {
125125 q .QC_hit = false
126126 }
127- } else if strings .Contains (part , "last_errno:" ) {
128- q .LastErrNo , err = strconv .Atoi (parts [idx + 1 ])
129- if err != nil {
130- logrus .Errorf ("last_errno: error converting %s to int: %s" , parts [idx + 1 ], err )
131- }
132-
133- } else if strings .Contains (part , "killed:" ) {
134- q .Killed , err = strconv .Atoi (parts [idx + 1 ])
135- if err != nil {
136- logrus .Errorf ("killed: error converting %s to int: %s" , parts [idx + 1 ], err )
137- }
138-
139127 } else if strings .Contains (part , "bytes_sent:" ) {
140128 q .BytesSent , err = strconv .Atoi (parts [idx + 1 ])
141129 if err != nil {
You can’t perform that action at this time.
0 commit comments