bugfix: add bypass metric

v4
vinllen 5 years ago
parent e2c2294d7b
commit 77dbdf03cf
  1. 1
      src/redis-shake/sync.go

@ -641,6 +641,7 @@ func (ds *dbSyncer) syncCommand(reader *bufio.Reader, target []string, auth_type
} }
if bypass || ignorecmd || !pass { if bypass || ignorecmd || !pass {
ds.nbypass.Incr() ds.nbypass.Incr()
metric.GetMetric(ds.id).AddBypassCmdCount(ds.id, 1)
log.Debugf("dbSyncer[%v] filter command[%v]", ds.id, scmd) log.Debugf("dbSyncer[%v] filter command[%v]", ds.id, scmd)
continue continue
} }

Loading…
Cancel
Save