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

Method SetKeyStatus

src/tera_test_main.cc:106–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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_);

Callers 2

ReaderCallBackFunction · 0.80
RWConsistencyTestFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected