mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-26 05:56:50 +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 {
|
loop {
|
||||||
if ctx.is_cancelled() {
|
if ctx.is_cancelled() {
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user