| 129 | } |
| 130 | |
| 131 | uint64_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 | |
| 144 | uint64_t TabletNode::GetReadPending() { |
| 145 | MutexLock lock(&mutex_); |