Skip to content

Commit

Permalink
add debug
Browse files Browse the repository at this point in the history
  • Loading branch information
tanjinx committed Dec 30, 2024
1 parent 5c40cf7 commit 0fc8568
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions go/vt/discovery/topology_watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,18 @@ func (tw *TopologyWatcher) loadTablets() {
}

for alias, newVal := range newTablets {
// debugging
log.Infof("Adding tablet: %s", newVal.tablet.Hostname)
if tw.tabletFilter == nil {
log.Error("slack: the tablet filter is not defined")
}

if tw.tabletFilter != nil && !tw.tabletFilter.IsIncluded(newVal.tablet) {
continue
}

log.Infof("slack: %s is not filtered out", newVal.tablet.Hostname)

// Trust the alias from topo and add it if it doesn't exist.
if val, ok := tw.tablets[alias]; ok {
// check if the host and port have changed. If yes, replace tablet.
Expand Down

0 comments on commit 0fc8568

Please sign in to comment.