Skip to content

Commit

Permalink
builtins: don't request consistency checker diff by default
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
tbg committed May 21, 2019
1 parent b2904de commit e3ae436
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/sql/sem/builtins/generator_builtins.go
Expand Up @@ -962,8 +962,10 @@ func (c *checkConsistencyGenerator) Start() error {
Key: c.from,
EndKey: c.to,
},
Mode: c.mode,
WithDiff: true,
Mode: c.mode,
// No meaningful diff can be created if we're checking the stats only,
// so request one only if a full check is run.
WithDiff: c.mode == roachpb.ChecksumMode_CHECK_FULL,
})
if err := c.db.Run(c.ctx, &b); err != nil {
return err
Expand Down

0 comments on commit e3ae436

Please sign in to comment.