Skip to content

Commit e4bc029

Browse files
committed
address comments
1 parent 3ce90e4 commit e4bc029

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/homestore_backend/gc_manager.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ bool GCManager::is_eligible_for_gc(std::shared_ptr< HeapChunkSelector::ExtendedV
8888
}
8989

9090
void GCManager::scan_chunks_for_gc() {
91-
// in every iteration, we will select at most RESERVED_CHUNK_NUM_PER_PDEV gc tasks
92-
auto max_task_num = RESERVED_CHUNK_NUM_PER_PDEV;
91+
// in every iteration, we will select at most 2 * RESERVED_CHUNK_NUM_PER_PDEV gc tasks
92+
auto max_task_num = 2 * (RESERVED_CHUNK_NUM_PER_PDEV - RESERVED_CHUNK_NUM_DEDICATED_FOR_EGC);
9393

9494
for (const auto& [_, chunk] : m_chunk_selector->get_all_chunks()) {
9595
if (is_eligible_for_gc(chunk)) {

0 commit comments

Comments
 (0)