Skip to content

Commit

Permalink
Revert "debug log"
Browse files Browse the repository at this point in the history
This reverts commit 9a25989.
  • Loading branch information
D3Hunter committed Apr 4, 2023
1 parent 07c5792 commit e83b723
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
4 changes: 0 additions & 4 deletions session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -3607,8 +3607,6 @@ func getStoreBootstrapVersion(store kv.Storage) int64 {
// check in memory
_, ok := storeBootstrapped[store.UUID()]
if ok {
logutil.BgLogger().Info("DEBUG=== got bootstrapped flag from memory",
zap.Int64("ver", currentBootstrapVersion), zap.String("store", store.UUID()))
return currentBootstrapVersion
}

Expand All @@ -3630,8 +3628,6 @@ func getStoreBootstrapVersion(store kv.Storage) int64 {
// here mean memory is not ok, but other server has already finished it
storeBootstrapped[store.UUID()] = true
}
logutil.BgLogger().Info("DEBUG=== got bootstrapped flag from kv",
zap.Int64("ver", currentBootstrapVersion), zap.String("store", store.UUID()))

return ver
}
Expand Down
6 changes: 0 additions & 6 deletions session/tidb.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,6 @@ func setStoreBootstrapped(storeUUID string) {
storeBootstrappedLock.Lock()
defer storeBootstrappedLock.Unlock()
storeBootstrapped[storeUUID] = true

logutil.BgLogger().Info("DEBUG=== setStoreBootstrapped",
zap.Int64("ver", currentBootstrapVersion), zap.String("store", storeUUID))
}

// unsetStoreBootstrapped delete store uuid from stored bootstrapped map.
Expand All @@ -166,9 +163,6 @@ func unsetStoreBootstrapped(storeUUID string) {
storeBootstrappedLock.Lock()
defer storeBootstrappedLock.Unlock()
delete(storeBootstrapped, storeUUID)

logutil.BgLogger().Info("DEBUG=== unsetStoreBootstrapped",
zap.Int64("ver", currentBootstrapVersion), zap.String("store", storeUUID))
}

// SetSchemaLease changes the default schema lease time for DDL.
Expand Down

0 comments on commit e83b723

Please sign in to comment.