| 432 | } |
| 433 | |
| 434 | TabletNodePtr 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 | |
| 449 | bool TabletNodeManager::ScheduleTabletNodeOrWait(Scheduler* scheduler, |
| 450 | const std::string& table_name, |
no outgoing calls
no test coverage detected