MCPcopy Create free account
hub / github.com/baidu/tera / GetQps

Method GetQps

src/master/tabletnode_manager.cc:131–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131uint64_t TabletNode::GetQps(const std::string& table_name) {
132 MutexLock lock(&mutex_);
133 if (table_name.empty()) {
134 return qps_;
135 }
136 uint64_t table_qps = 0;
137 std::map<std::string, uint64_t>::iterator it = table_qps_.find(table_name);
138 if (it != table_qps_.end()) {
139 table_qps = it->second;
140 }
141 return table_qps;
142}
143
144uint64_t TabletNode::GetReadPending() {
145 MutexLock lock(&mutex_);

Callers 1

UpdateSizeMethod · 0.45

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected