Skip to content

Commit 119d197

Browse files
Merge pull request vitessio#3913 from michael-berlin/hot_row_more_queries
tabletserver: Do not skip the hot row protection if the ExecuteBatch …
2 parents 60d678d + 327386d commit 119d197

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/vt/vttablet/tabletserver/tabletserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ func (tsv *TabletServer) ExecuteBatch(ctx context.Context, target *querypb.Targe
972972
return nil, vterrors.Errorf(vtrpcpb.Code_INVALID_ARGUMENT, "cannot start a new transaction in the scope of an existing one")
973973
}
974974

975-
if tsv.enableHotRowProtection && asTransaction && len(queries) == 1 {
975+
if tsv.enableHotRowProtection && asTransaction {
976976
// Serialize transactions which target the same hot row range.
977977
// NOTE: We put this intentionally at this place *before* tsv.startRequest()
978978
// gets called below. Otherwise, the startRequest()/endRequest() section from

0 commit comments

Comments
 (0)