Skip to content

Commit de1be7c

Browse files
committed
fix ut
1 parent 6bfaf1a commit de1be7c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pkg/frontend/clone.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,12 +347,15 @@ func handleCloneDatabase(
347347
}
348348

349349
func tryToIncreaseTxnPhysicalTS(
350-
ctx context.Context,
351-
txnOp client.TxnOperator,
350+
ctx context.Context, txnOp client.TxnOperator,
352351
) (updatedPhysical int64, err error) {
353352

354353
curTxnPhysicalTS := txnOp.SnapshotTS().PhysicalTime
355354

355+
if ctx.Value(defines.TenantIDKey{}) == nil {
356+
return curTxnPhysicalTS, nil
357+
}
358+
356359
// a slight increase added to the physical to make sure
357360
// the updated ts is greater than the old txn timestamp (physical + logic)
358361
curTxnPhysicalTS += int64(time.Microsecond)

0 commit comments

Comments
 (0)