Skip to content

Commit

Permalink
add some comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lcwangchao committed Sep 6, 2024
1 parent 3cf83be commit 3ca44c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/ddl/reorg.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ func newReorgTableMutateContext(exprCtx exprctx.ExprContext) table.MutateContext
exprCtx: exprCtx,
encodingConfig: encodingConfig,
mutateBuffers: tbctx.NewMutateBuffers(&variable.WriteStmtBufs{}),
// Though currently, `RowIDShardGenerator` is not required in DDL reorg,
// we still provide a valid one to make the code more robust and to avoid panic if it is used in the future.
shardID: variable.NewRowIDShardGenerator(
rand.New(rand.NewSource(time.Now().UnixNano())), // #nosec G404
variable.DefTiDBShardAllocateStep,
Expand Down

0 comments on commit 3ca44c5

Please sign in to comment.