| 4386 | } |
| 4387 | |
| 4388 | bool 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 | |
| 4400 | void TabletImpl::GetDiskused() { |
| 4401 | std::vector<std::shared_ptr<Table>> tables; |
nothing calls this directly
no test coverage detected