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

Method GetClientsStr

src/server/server.cc:1808–1821  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1806}
1807
1808std::string Server::GetClientsStr() {
1809 std::string clients;
1810 for (const auto &t : worker_threads_) {
1811 clients.append(t->GetWorker()->GetClientsStr());
1812 }
1813
1814 std::shared_lock<std::shared_mutex> guard(slave_threads_mu_);
1815
1816 for (const auto &st : slave_threads_) {
1817 clients.append(st->GetConn()->ToString());
1818 }
1819
1820 return clients;
1821}
1822
1823void Server::KillClient(int64_t *killed, const std::string &addr, uint64_t id, uint64_t type, bool skipme,
1824 redis::Connection *conn) {

Callers 1

ExecuteMethod · 0.45

Calls 3

GetWorkerMethod · 0.80
GetConnMethod · 0.80
ToStringMethod · 0.45

Tested by

no test coverage detected