From 3225f4161968d68b50bc4ada2f86a8494d6f4c87 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Tue, 25 Apr 2023 09:51:55 -0700 Subject: [PATCH] move redis_mem_notification to the correct place --- controller/PostgreSQL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp index ae705bb33..2aa24e2e4 100644 --- a/controller/PostgreSQL.cpp +++ b/controller/PostgreSQL.cpp @@ -1145,6 +1145,7 @@ void PostgreSQL::_membersWatcher_Redis() { _redis->xdel(key, id); } lastID = id; + Metrics::redis_mem_notification++; } } } @@ -1794,7 +1795,6 @@ uint64_t PostgreSQL::_doRedisUpdate(sw::redis::Transaction &tx, std::string &con .sadd("network-nodes-all:{"+controllerId+"}:"+networkId, memberId) .hmset("member:{"+controllerId+"}:"+networkId+":"+memberId, record.begin(), record.end()); ++count; - Metrics::redis_mem_notification++; } // expire records from all-nodes and network-nodes member list