Skip to content

Commit

Permalink
Remove what are now redundant comments
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Lord <[email protected]>
  • Loading branch information
mattlord committed Feb 28, 2024
1 parent 793c7a1 commit 4a5fae9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions go/vt/vttablet/tabletmanager/vreplication/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ func insertLog(dbClient *vdbClient, typ string, vreplID int32, state, message st
query = fmt.Sprintf("update %s.vreplication_log set count = count + 1 where id = %d", sidecar.GetIdentifier(), id)
} else {
buf := sqlparser.NewTrackedBuffer(nil)
// We perform the truncation, if needed, in the middle of the message as the end of the message is likely to
// be the most important part as it often explains WHY we e.g. failed to execute an INSERT in the workflow.
if len(message) > maxVReplicationLogMessageLen {
message, err = textutil.TruncateText(message, maxVReplicationLogMessageLen, binlogplayer.TruncationLocation, binlogplayer.TruncationIndicator)
if err != nil {
Expand Down

0 comments on commit 4a5fae9

Please sign in to comment.