Skip to content

Commit

Permalink
boost: defer write cache
Browse files Browse the repository at this point in the history
  • Loading branch information
benetis committed Mar 28, 2024
1 parent 862d7b5 commit c409d15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 -l=4 .

# build the vitess binaries with dynamic dependency on libc
build-dyn:
Expand Down
2 changes: 1 addition & 1 deletion go/vt/vtgate/plan_execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func (e *Executor) newExecute(ctx context.Context, safeSession *SafeSession, sql
return sqlparser.StmtSelect, decodedResults, nil
} else {
stmt, sqlResult, err1 := e.executePlan(ctx, plan, vcursor, bindVars, execStart)(logStats, safeSession)
go e.setBoostCache(sqlResult, cacheKey)
defer e.setBoostCache(sqlResult, cacheKey)

return stmt, sqlResult, err1
}
Expand Down

0 comments on commit c409d15

Please sign in to comment.