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

Method QueryTabletStatus

src/tabletnode/tabletnode_impl.cc:383–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381}
382
383StatusCode 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
396void TabletNodeImpl::LoadTablet(const LoadTabletRequest* request, LoadTabletResponse* response) {
397 response->set_sequence_id(request->sequence_id());

Callers 2

Calls 4

DebugStringFunction · 0.85
StatusCodeToStringFunction · 0.85
GetTabletMethod · 0.45
GetStatusMethod · 0.45

Tested by

no test coverage detected