mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-29 11:20:38 +00:00
feat: gc scheduler ctx&procedure (#7252)
* feat: gc ctx&procedure Signed-off-by: discord9 <discord9@163.com> * fix: handle region not found case Signed-off-by: discord9 <discord9@163.com> * docs: more explain&todo Signed-off-by: discord9 <discord9@163.com> * per review Signed-off-by: discord9 <discord9@163.com> * chore: add time for region gc Signed-off-by: discord9 <discord9@163.com> * fix: explain why loader for gc region should fail Signed-off-by: discord9 <discord9@163.com> --------- Signed-off-by: discord9 <discord9@163.com>
This commit is contained in:
@@ -121,6 +121,9 @@ impl GcReport {
|
||||
*self_files = dedup.into_iter().collect();
|
||||
}
|
||||
self.need_retry_regions.extend(other.need_retry_regions);
|
||||
// Remove regions that have succeeded from need_retry_regions
|
||||
self.need_retry_regions
|
||||
.retain(|region| !self.deleted_files.contains_key(region));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user