Skip to content

Commit d9e2a08

Browse files
committed
fix seq
Signed-off-by: Wenqi Mou <[email protected]>
1 parent 5251807 commit d9e2a08

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

br/pkg/task/restore.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2241,6 +2241,10 @@ func createDBsAndTables(
22412241
func setTablesRestoreModeIfNeeded(tables []*metautil.Table, cfg *SnapshotRestoreConfig, isPiTR bool) {
22422242
if cfg.ExplicitFilter && isPiTR {
22432243
for i, table := range tables {
2244+
// skip sequence as there is extra steps need to do after creation and restoreMode will block it
2245+
if table.Info.IsSequence() {
2246+
continue
2247+
}
22442248
tableCopy := *table
22452249
tableCopy.Info = table.Info.Clone()
22462250
tableCopy.Info.Mode = model.TableModeRestore

0 commit comments

Comments
 (0)