Skip to content

Commit

Permalink
fix: port read_after_write fix to 0.1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
earayu committed Mar 26, 2024
1 parent 5f628f7 commit b8637a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions go/vt/vttablet/tabletserver/query_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -998,14 +998,14 @@ func (qre *QueryExecutor) txFetch(conn *StatefulConnection, record bool) (*sqlty
if err != nil {
return nil, err
}
qr, err := qre.execStatefulConn(conn, sql, true)
if err != nil {
return nil, err
}
waitGtidPrefixAdded := false
if qre.plan.PlanID == p.PlanSelect {
sql, waitGtidPrefixAdded = qre.addPrefixWaitGtid(sql)
}
qr, err := qre.execStatefulConn(conn, sql, true)
if err != nil {
return nil, err
}
// Only record successful queries.
if record {
conn.TxProperties().RecordQuery(sql)
Expand Down

0 comments on commit b8637a7

Please sign in to comment.