You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tk.MustExec("set global tidb_enable_metadata_lock=1")
451
+
tk.MustExec("create table t(a int) partition by range(a) ( PARTITION p0 VALUES LESS THAN (0), PARTITION p1 VALUES LESS THAN (100), PARTITION p2 VALUES LESS THAN MAXVALUE );")
452
+
tk.MustExec("insert into t values(1), (2), (3), (4);")
453
+
454
+
varwg sync.WaitGroup
455
+
wg.Add(2)
456
+
varts2 time.Time
457
+
varts1 time.Time
458
+
459
+
gofunc() {
460
+
tk.MustExec("begin")
461
+
tk.MustExec("analyze table t;")
462
+
tk.MustExec("analyze table t partition p1;")
463
+
tk.MustQuery("select sleep(2);")
464
+
tk.MustExec("commit")
465
+
ts1=time.Now()
466
+
wg.Done()
467
+
}()
468
+
469
+
gofunc() {
470
+
tkDDL.MustExec("alter table test.t drop partition p2;")
0 commit comments