Skip to content

Commit

Permalink
boost: defer write cache (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
benetis authored Mar 28, 2024
1 parent 862d7b5 commit 4e063e2
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 4e063e2

Please sign in to comment.