| 2881 | } |
| 2882 | |
| 2883 | void 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 | |
| 2902 | void MasterImpl::DoTabletNodeGcPhase2() { |
| 2903 | std::vector<TablePtr> table_list; |
nothing calls this directly
no test coverage detected