MCPcopy Create free account
hub / github.com/apache/brpc / StartRecover

Method StartRecover

src/brpc/cluster_recover_policy.cpp:45–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 , _usable_cache_time_ms(0) { }
44
45void DefaultClusterRecoverPolicy::StartRecover() {
46 std::unique_lock<butil::Mutex> mu(_mutex);
47 _recovering = true;
48}
49
50bool DefaultClusterRecoverPolicy::StopRecoverIfNecessary() {
51 if (!_recovering) {

Callers 2

SelectServerMethod · 0.80
SelectServerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected