log: silence schema check log (#1290)

Signed-off-by: ekexium <eke@fastmail.com>
Co-authored-by: cfzjywxk <lsswxrxr@163.com>
This commit is contained in:
ekexium 2024-04-15 15:08:02 +08:00 committed by GitHub
parent dcb9b95307
commit a23f6cac0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -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))