| 381 | } |
| 382 | |
| 383 | StatusCode TabletNodeImpl::QueryTabletStatus(const std::string& table_name, |
| 384 | const std::string& key_start, |
| 385 | const std::string& key_end) { |
| 386 | StatusCode status; |
| 387 | io::TabletIO* tablet_io = tablet_manager_->GetTablet(table_name, key_start, key_end, &status); |
| 388 | if (tablet_io == NULL) { |
| 389 | VLOG(15) << "fail to get tablet: " << table_name << " [" << DebugString(key_start) << ", " |
| 390 | << DebugString(key_end) << "], status: " << StatusCodeToString(status); |
| 391 | return kKeyNotInRange; |
| 392 | } |
| 393 | return static_cast<StatusCode>(tablet_io->GetStatus()); |
| 394 | } |
| 395 | |
| 396 | void TabletNodeImpl::LoadTablet(const LoadTabletRequest* request, LoadTabletResponse* response) { |
| 397 | response->set_sequence_id(request->sequence_id()); |
no test coverage detected