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

Method AddTablet

src/tabletnode/test/tabletnode_impl_test.cc:69–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 // mock tablet manager
68
69 bool AddTablet(const std::string& table_name, const std::string& table_path,
70 const std::string& key_start, const std::string& key_end, io::TabletIO** tablet_io,
71 StatusCode* status) {
72 m_tablet_io.AddRef();
73 *tablet_io = &m_tablet_io;
74 *status = m_ret_status;
75 return m_ret_tm_add;
76 }
77 bool RemoveTablet(const std::string& table_name, const std::string& key_start,
78 const std::string& key_end, StatusCode* status) {
79 return m_ret_tm_remove;

Callers 1

TEST_FFunction · 0.45

Calls 1

AddRefMethod · 0.80

Tested by

no test coverage detected