MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / GetTableRootSize

Method GetTableRootSize

src/tablet/tablet_impl.cc:4388–4398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4386}
4387
4388bool TabletImpl::GetTableRootSize(uint32_t tid, uint32_t pid, uint64_t& size) {
4389 std::string table_path;
4390 if (!ChooseTableRootPath(tid, pid, table_path)) {
4391 return false;
4392 }
4393 if (!::fedb::base::GetDirSizeRecur(table_path, size)) {
4394 PDLOG(WARNING, "get table root size failed. tid %u, pid %u", tid, pid);
4395 return false;
4396 }
4397 return true;
4398}
4399
4400void TabletImpl::GetDiskused() {
4401 std::vector<std::shared_ptr<Table>> tables;

Callers

nothing calls this directly

Calls 1

GetDirSizeRecurFunction · 0.85

Tested by

no test coverage detected