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

Method CanUnload

src/master/tabletnode_manager.cc:270–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270bool TabletNode::CanUnload() {
271 MutexLock lock(&mutex_);
272 if (unloading_count_ < static_cast<uint32_t>(FLAGS_tera_master_max_unload_concurrency)) {
273 ++unloading_count_;
274 return true;
275 }
276 return false;
277}
278
279void TabletNode::FinishUnload() {
280 MutexLock lock(&mutex_);

Callers 1

GenerateEventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected