mirror of https://github.com/tikv/client-go.git
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:
parent
dcb9b95307
commit
a23f6cac0c
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in New Issue