We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cf83be commit 3ca44c5Copy full SHA for 3ca44c5
pkg/ddl/reorg.go
@@ -246,6 +246,8 @@ func newReorgTableMutateContext(exprCtx exprctx.ExprContext) table.MutateContext
246
exprCtx: exprCtx,
247
encodingConfig: encodingConfig,
248
mutateBuffers: tbctx.NewMutateBuffers(&variable.WriteStmtBufs{}),
249
+ // Though currently, `RowIDShardGenerator` is not required in DDL reorg,
250
+ // we still provide a valid one to make the code more robust and to avoid panic if it is used in the future.
251
shardID: variable.NewRowIDShardGenerator(
252
rand.New(rand.NewSource(time.Now().UnixNano())), // #nosec G404
253
variable.DefTiDBShardAllocateStep,
0 commit comments