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

Function GetTabletIdForDiff

src/terautil.cc:543–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

541}
542
543std::string GetTabletIdForDiff(const std::string& val) {
544 std::size_t pos = val.find(':');
545 CHECK(pos != std::string::npos);
546 std::string prefix = val.substr(0, pos);
547 std::vector<std::string> prefix_datas;
548 SplitString(prefix, ",", &prefix_datas);
549 return prefix_datas[6];
550}
551
552std::string GetTabletIdForDump(const std::string& val) {
553 std::size_t pos = val.find(':');

Callers

nothing calls this directly

Calls 1

SplitStringFunction · 0.50

Tested by

no test coverage detected