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

Method DoTabletNodeGc

src/master/master_impl.cc:2883–2900  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2881}
2882
2883void MasterImpl::DoTabletNodeGc() {
2884 {
2885 MutexLock lock(&mutex_);
2886 if (!gc_enabled_) {
2887 gc_timer_id_ = kInvalidTimerId;
2888 return;
2889 }
2890 }
2891
2892 std::vector<TablePtr> table_list;
2893 tablet_manager_->ShowTable(&table_list, NULL);
2894 for (uint32_t i = 0; i < table_list.size(); ++i) {
2895 table_list[i]->TryCollectInheritedFile();
2896 }
2897
2898 MutexLock lock(&mutex_);
2899 gc_query_enable_ = true;
2900}
2901
2902void MasterImpl::DoTabletNodeGcPhase2() {
2903 std::vector<TablePtr> table_list;

Callers

nothing calls this directly

Calls 3

ShowTableMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected