From a23f6cac0c47c069018da8c977a175f76bcc4d71 Mon Sep 17 00:00:00 2001 From: ekexium Date: Mon, 15 Apr 2024 15:08:02 +0800 Subject: [PATCH] log: silence schema check log (#1290) Signed-off-by: ekexium Co-authored-by: cfzjywxk --- txnkv/transaction/2pc.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/txnkv/transaction/2pc.go b/txnkv/transaction/2pc.go index 824a45de..851bb7ef 100644 --- a/txnkv/transaction/2pc.go +++ b/txnkv/transaction/2pc.go @@ -1837,7 +1837,9 @@ func (c *twoPhaseCommitter) checkSchemaValid(ctx context.Context, checkTS uint64 } if c.txn.schemaLeaseChecker == nil { if c.sessionID > 0 { - logutil.Logger(ctx).Warn("schemaLeaseChecker is not set for this transaction", + // Schema check is not mandatory since MDL is introduced. + logutil.Logger(ctx).Debug( + "schemaLeaseChecker is not set for this transaction", zap.Uint64("sessionID", c.sessionID), zap.Uint64("startTS", c.startTS), zap.Uint64("checkTS", checkTS))