зеркало из https://github.com/github/vitess-gh.git
Merge pull request #5258 from tanjunchen/fix-up-code-bug
avoid having to escape twice in go/vt/vtgate/plugin_mysql_server.go file
This commit is contained in:
Коммит
f645c11a39
|
@ -118,7 +118,7 @@ func (vh *vtgateHandler) ConnectionClosed(c *mysql.Conn) {
|
|||
}
|
||||
|
||||
// Regexp to extract parent span id over the sql query
|
||||
var r = regexp.MustCompile("/\\*VT_SPAN_CONTEXT=(.*)\\*/")
|
||||
var r = regexp.MustCompile(`/\*VT_SPAN_CONTEXT=(.*)\*/`)
|
||||
|
||||
// this function is here to make this logic easy to test by decoupling the logic from the `trace.NewSpan` and `trace.NewFromString` functions
|
||||
func startSpanTestable(ctx context.Context, query, label string,
|
||||
|
|
Загрузка…
Ссылка в новой задаче