MCPcopy Create free account
hub / github.com/apache/kvrocks / IncrClientNum

Method IncrClientNum

src/server/server.cc:848–851  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

846void Server::updateCachedTime() { unix_time_secs.store(util::GetTimeStamp()); }
847
848int Server::IncrClientNum() {
849 total_clients_.fetch_add(1, std::memory_order_relaxed);
850 return connected_clients_.fetch_add(1, std::memory_order_relaxed);
851}
852
853int Server::DecrClientNum() { return connected_clients_.fetch_sub(1, std::memory_order_relaxed); }
854

Callers 1

AddConnectionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected