mirror of
https://github.com/rustfs/rustfs.git
synced 2026-03-17 14:24:08 +00:00
[codex] fix scanner first cycle startup delay (#2137)
This commit is contained in:
@@ -258,6 +258,11 @@ pub async fn run_data_scanner(ctx: CancellationToken, storeapi: Arc<ECStore>) ->
|
||||
}
|
||||
}
|
||||
|
||||
if !ctx.is_cancelled() {
|
||||
// Preserve previous behavior: run one cycle immediately after lock acquisition.
|
||||
run_data_scanner_cycle(&ctx, &storeapi, &mut cycle_info).await;
|
||||
}
|
||||
|
||||
loop {
|
||||
if ctx.is_cancelled() {
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user