move redis_mem_notification to the correct place

This commit is contained in:
Grant Limberg 2023-04-25 09:51:55 -07:00
commit 3225f41619
No known key found for this signature in database
GPG key ID: 8F2F97D3BE8D7735

View file

@ -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