Skip to content

Commit

Permalink
turn off raw packets when consolidation is on
Browse files Browse the repository at this point in the history
Signed-off-by: Harshit Gangal <[email protected]>
  • Loading branch information
harshit-gangal committed Nov 15, 2024
1 parent 05b80b8 commit 881851f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions go/vt/vttablet/tabletserver/query_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ func allocStreamResult() *sqltypes.Result {
return streamResultPool.Get().(*sqltypes.Result)
}

func (qre *QueryExecutor) shouldConsolidate() bool {
// TODO (harshit): This is a temporary implementation to test the feature.
// This should ideally work with consolidator.
if qre.options.GetRawMysqlPackets() {
return false
}
func (qre *QueryExecutor) shouldConsolidate() (consolidate bool) {
defer func() {
if consolidate && qre.options != nil {
qre.options.RawMysqlPackets = false
}
}()
co := qre.options.GetConsolidator()
switch co {
case querypb.ExecuteOptions_CONSOLIDATOR_DISABLED:
Expand Down

0 comments on commit 881851f

Please sign in to comment.