Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tiancaiamao committed Jul 4, 2018
1 parent 04d3d7e commit f5691d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion privilege/privileges/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func (p *MySQLPrivilege) loadTable(sctx sessionctx.Context, sql string,

fs := rs.Fields()
for {
// WARNNING: decodeTableRow decodes data from a chunk Row, that is a shallow copy.
// NOTE: decodeTableRow decodes data from a chunk Row, that is a shallow copy.
// The result will reference memory in the chunk, so the chunk must not be reused
// here, otherwise some werid bug will happen!
chk := rs.NewChunk()
Expand Down

0 comments on commit f5691d6

Please sign in to comment.