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

Method FindTabletNode

src/master/tabletnode_manager.cc:434–447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432}
433
434TabletNodePtr TabletNodeManager::FindTabletNode(const std::string& addr, TabletNodePtr* state) {
435 TabletNodePtr node;
436 MutexLock lock(&mutex_);
437 TabletNodeList::iterator it = tabletnode_list_.find(addr);
438 if (it == tabletnode_list_.end()) {
439 // LOG(WARNING) << "tabletnode [" << addr << "] does not exist";
440 return node;
441 }
442 node = it->second;
443 if (NULL != state) {
444 *state = it->second;
445 }
446 return node;
447}
448
449bool TabletNodeManager::ScheduleTabletNodeOrWait(Scheduler* scheduler,
450 const std::string& table_name,

Callers 13

RestoreMetaTabletMethod · 0.80
RestoreUserTabletMethod · 0.80
LoadMetaTableMethod · 0.80
ShowTabletNodesMethod · 0.80
KickTabletNodeCmdCtrlMethod · 0.80
TabletCmdCtrlMethod · 0.80
LoadBalanceMethod · 0.80
TryKickTabletNodeMethod · 0.80
LoadTabletSyncMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected