| 1397 | } |
| 1398 | |
| 1399 | bool 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 | |
| 1410 | bool TableImpl::GetTablet(const std::string& row_key, std::string* tablet) { |
| 1411 | TabletMeta meta; |