Commit ac057eb 1 parent cc0387b commit ac057eb Copy full SHA for ac057eb
File tree 3 files changed +5
-5
lines changed
pkg/lightning/checkpoints
lightning_checkpoint_chunks
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ const WholeTableEngineID = math.MaxInt32
71
71
// remember to increase the version number in case of incompatible change.
72
72
const (
73
73
CheckpointTableNameTask = "task_v2"
74
- CheckpointTableNameTable = "table_v8 "
74
+ CheckpointTableNameTable = "table_v9 "
75
75
CheckpointTableNameEngine = "engine_v5"
76
76
CheckpointTableNameChunk = "chunk_v5"
77
77
)
@@ -107,7 +107,7 @@ const (
107
107
status tinyint unsigned DEFAULT 30,
108
108
alloc_base bigint NOT NULL DEFAULT 0,
109
109
table_id bigint NOT NULL DEFAULT 0,
110
- table_info text NOT NULL,
110
+ table_info longtext NOT NULL,
111
111
create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
112
112
update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
113
113
kv_bytes bigint unsigned NOT NULL DEFAULT 0,
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ echo "******** Verify checkpoint no-op ********"
89
89
run_lightning -d " $DBPATH " --enable-checkpoint=1
90
90
run_sql " $PARTIAL_IMPORT_QUERY "
91
91
check_contains " s: $(( (1000 * $CHUNK_COUNT + 1001 ) * $CHUNK_COUNT * $TABLE_COUNT )) "
92
- run_sql ' SELECT count(*) FROM `tidb_lightning_checkpoint_test_cppk`.table_v8 WHERE status >= 200'
92
+ run_sql ' SELECT count(*) FROM `tidb_lightning_checkpoint_test_cppk`.table_v9 WHERE status >= 200'
93
93
check_contains " count(*): $TABLE_COUNT "
94
94
95
95
# Start importing the tables.
@@ -113,5 +113,5 @@ echo "******** Verify checkpoint no-op ********"
113
113
run_lightning -d " $DBPATH " --enable-checkpoint=1
114
114
run_sql " $PARTIAL_IMPORT_QUERY "
115
115
check_contains " s: $(( (1000 * $CHUNK_COUNT + 1001 ) * $CHUNK_COUNT * $TABLE_COUNT )) "
116
- run_sql ' SELECT count(*) FROM `tidb_lightning_checkpoint_test_cppk`.table_v8 WHERE status >= 200'
116
+ run_sql ' SELECT count(*) FROM `tidb_lightning_checkpoint_test_cppk`.table_v9 WHERE status >= 200'
117
117
check_contains " count(*): $TABLE_COUNT "
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ verify_checkpoint_noop() {
34
34
run_sql ' SELECT count(i), sum(i) FROM cpch_tsr.tbl;'
35
35
check_contains " count(i): $(( $ROW_COUNT * $CHUNK_COUNT )) "
36
36
check_contains " sum(i): $(( $ROW_COUNT * $CHUNK_COUNT * (($CHUNK_COUNT + 2 )* $ROW_COUNT + 1 )/ 2 )) "
37
- run_sql ' SELECT count(*) FROM `tidb_lightning_checkpoint_test_cpch.1234567890.bak`.table_v8 WHERE status >= 200'
37
+ run_sql ' SELECT count(*) FROM `tidb_lightning_checkpoint_test_cpch.1234567890.bak`.table_v9 WHERE status >= 200'
38
38
check_contains " count(*): 1"
39
39
}
40
40
You can’t perform that action at this time.
0 commit comments