Skip to content

Commit e7a34bb

Browse files
Fix static check error
Signed-off-by: Rohit Nayak <[email protected]>
1 parent 81e4999 commit e7a34bb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

go/vt/vttablet/tabletmanager/rpc_vreplication.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,10 @@ func (tm *TabletManager) ValidateVReplicationPermissions(ctx context.Context, re
920920
return nil, vterrors.Wrap(err, "failed to start transaction for permission testing")
921921
}
922922
defer func() {
923-
conn.ExecuteFetch("ROLLBACK", 1, false)
923+
_, err := conn.ExecuteFetch("ROLLBACK", 1, false)
924+
if err != nil {
925+
log.Warningf("failed to rollback transaction after permission testing: %v", err)
926+
}
924927
}()
925928

926929
// Create a unique test workflow name to avoid conflicts using timestamp and random component

0 commit comments

Comments
 (0)