From 77dbdf03cf1c9957be63b9aa42c8e54d16a27358 Mon Sep 17 00:00:00 2001 From: vinllen Date: Fri, 5 Jul 2019 15:30:38 +0800 Subject: [PATCH] bugfix: add bypass metric --- src/redis-shake/sync.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/redis-shake/sync.go b/src/redis-shake/sync.go index 894c517..a0da347 100644 --- a/src/redis-shake/sync.go +++ b/src/redis-shake/sync.go @@ -641,6 +641,7 @@ func (ds *dbSyncer) syncCommand(reader *bufio.Reader, target []string, auth_type } if bypass || ignorecmd || !pass { ds.nbypass.Incr() + metric.GetMetric(ds.id).AddBypassCmdCount(ds.id, 1) log.Debugf("dbSyncer[%v] filter command[%v]", ds.id, scmd) continue }