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 d30c122
Showing 1 changed file with 1 addition and 1 deletion.
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 d30c122

Please sign in to comment.