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

Method GetTabletMetaForKey

src/sdk/table_impl.cc:1399–1408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1397}
1398
1399bool TableImpl::GetTabletMetaForKey(const std::string& key, TabletMeta* meta) {
1400 MutexLock lock(&meta_mutex_);
1401 TabletMetaNode* node = GetTabletMetaNodeForKey(key);
1402 if (node == NULL) {
1403 VLOG(10) << "no meta for key: " << key;
1404 return false;
1405 }
1406 meta->CopyFrom(node->meta);
1407 return true;
1408}
1409
1410bool TableImpl::GetTablet(const std::string& row_key, std::string* tablet) {
1411 TabletMeta meta;

Callers 1

FindTsOpFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected