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

Method GetLatestKeyNumStats

src/server/server.cc:1733–1739  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1731}
1732
1733void Server::GetLatestKeyNumStats(const std::string &ns, KeyNumStats *stats) {
1734 std::lock_guard<std::mutex> lg(db_job_mu_);
1735 auto iter = db_scan_infos_.find(ns);
1736 if (iter != db_scan_infos_.end()) {
1737 *stats = iter->second.key_num_stats;
1738 }
1739}
1740
1741int64_t Server::GetLastScanTime(const std::string &ns) {
1742 std::lock_guard<std::mutex> lg(db_job_mu_);

Callers 1

ExecuteMethod · 0.80

Calls 1

endMethod · 0.80

Tested by

no test coverage detected