src/backend/gc/gc_manager.cpp
// Called by start GC as the thread function when mode is vacuum
Called by start GC as the thread function when mode is vacuum
Called by start GC as the thread function when mode is vacuum
void GCManager::Poll() {
  while (1) {
    if (!this->is_running_) break;
    PerformGC();
    std::this_thread::sleep_for(
        std::chrono::seconds(vacuum_thread_sleep_time_));
  }
}
void GCManager :: Poll ( ) { while ( 1 ) { if ( ! this -> is_running_ ) break ; PerformGC ( ) ; std :: this_thread :: sleep_for ( std :: chrono :: seconds ( vacuum_thread_sleep_time_ ) ) ; } }
Called by start GC as the thread function when mode is vacuum
Called by start GC as the thread function when mode is vacuum
// Loop infinitely and perform GC