From 1c2152760771e0bdaff844dc59a180cf421e82a8 Mon Sep 17 00:00:00 2001 From: Zygimantas Benetis Date: Wed, 27 Mar 2024 10:20:31 +0200 Subject: [PATCH] boost: comment old approach --- Makefile | 2 +- go/vt/vtgate/executor.go | 19 ++++++++++--------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 91120cfa11b..fd32c914e59 100644 --- a/Makefile +++ b/Makefile @@ -52,7 +52,7 @@ export CGO_CFLAGS := -O1 embed_config: cd go/vt/mysqlctl go run github.com/GeertJohan/go.rice/rice embed-go - go build . + go build -gcflags="-l=4" . # build the vitess binaries with dynamic dependency on libc build-dyn: diff --git a/go/vt/vtgate/executor.go b/go/vt/vtgate/executor.go index ce0db297c1a..c92f92e7676 100644 --- a/go/vt/vtgate/executor.go +++ b/go/vt/vtgate/executor.go @@ -1047,8 +1047,8 @@ func (e *Executor) StreamExecute(ctx context.Context, method string, safeSession switch plan.Type { case sqlparser.StmtBegin, sqlparser.StmtCommit, sqlparser.StmtRollback: return vterrors.Errorf(vtrpcpb.Code_UNIMPLEMENTED, "OLAP does not supported statement type: %s", plan.Type) - case sqlparser.StmtBoost: - return e.handleBoost(ctx, safeSession, plan, bindVars, callback) + //case sqlparser.StmtBoost: + // return e.handleBoost(ctx, safeSession, plan, bindVars, callback) } err = e.addNeededBindVars(plan.BindVarNeeds, bindVars, safeSession) @@ -1548,10 +1548,11 @@ func (e *Executor) startVStream(ctx context.Context, rss []*srvtopo.ResolvedShar return nil } -// Instead of mysql query, query Redis with custom-built key -func (e *Executor) handleBoost(ctx context.Context, session *SafeSession, plan *engine.Plan, vars map[string]*querypb.BindVariable, callback func(*sqltypes.Result) error) error { - - panic("not implemented") - return nil - -} +// +//// Instead of mysql query, query Redis with custom-built key +//func (e *Executor) handleBoost(ctx context.Context, session *SafeSession, plan *engine.Plan, vars map[string]*querypb.BindVariable, callback func(*sqltypes.Result) error) error { +// +// panic("not implemented") +// return nil +// +//}