@@ -384,13 +384,6 @@ func (s *testIndexSuite) checkReorganizationIndex(c *C, ctx context.Context, d *
384
384
c .Assert (err , IsNil )
385
385
c .Assert (i , Equals , int64 (1 ))
386
386
387
- columnValues := make ([]interface {}, len (indexCol .Columns ))
388
- for i , column := range indexCol .Columns {
389
- columnValues [i ] = row [column .Offset ]
390
- }
391
-
392
- s .checkIndexKVExist (c , ctx , t , handle , indexCol , columnValues , isDropped )
393
-
394
387
// Test add a new row.
395
388
_ , err = ctx .GetTxn (true )
396
389
c .Assert (err , IsNil )
@@ -412,6 +405,7 @@ func (s *testIndexSuite) checkReorganizationIndex(c *C, ctx context.Context, d *
412
405
})
413
406
c .Assert (i , Equals , int64 (2 ))
414
407
408
+ columnValues := make ([]interface {}, len (indexCol .Columns ))
415
409
for i , column := range indexCol .Columns {
416
410
columnValues [i ] = newRow [column .Offset ]
417
411
}
@@ -452,7 +446,6 @@ func (s *testIndexSuite) checkReorganizationIndex(c *C, ctx context.Context, d *
452
446
})
453
447
c .Assert (i , Equals , int64 (1 ))
454
448
455
- s .checkIndexKVExist (c , ctx , t , handle , indexCol , columnValues , false )
456
449
s .testGetIndex (c , t , indexCol .Columns [0 ].Name .L , false )
457
450
}
458
451
0 commit comments