| 104 | } |
| 105 | |
| 106 | void SetKeyStatus(const std::string& key, bool busy_or_not) { |
| 107 | MutexLock l(&mu_); |
| 108 | if (busy_or_not) { |
| 109 | CHECK(!keys_stat_[key]); |
| 110 | keys_stat_[key] = true; |
| 111 | } else { |
| 112 | keys_stat_[key] = false; |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | void UpdateTime(const std::string& key, uint64_t ts) { |
| 117 | MutexLock l(&mu_); |
no outgoing calls
no test coverage detected