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

Method GetSize

src/master/tabletnode_manager.cc:118–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116const std::string& TabletNode::GetId() { return uuid_; }
117
118uint64_t TabletNode::GetSize(const std::string& table_name) {
119 MutexLock lock(&mutex_);
120 if (table_name.empty()) {
121 return data_size_;
122 }
123 uint64_t table_size = 0;
124 std::map<std::string, uint64_t>::iterator it = table_size_.find(table_name);
125 if (it != table_size_.end()) {
126 table_size = it->second;
127 }
128 return table_size;
129}
130
131uint64_t TabletNode::GetQps(const std::string& table_name) {
132 MutexLock lock(&mutex_);

Callers 3

CompareMethod · 0.45
MayMoveOutMethod · 0.45
FindBestTabletMethod · 0.45

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected