diff --git a/rocketmq-store-local/src/base/allocate_mapped_file_service.rs b/rocketmq-store-local/src/base/allocate_mapped_file_service.rs index 4455b34de1..429255cd76 100644 --- a/rocketmq-store-local/src/base/allocate_mapped_file_service.rs +++ b/rocketmq-store-local/src/base/allocate_mapped_file_service.rs @@ -529,9 +529,12 @@ impl AllocateMappedFileService { info!("AllocateMappedFileService: service end"); } - /// Core file allocation operation - corresponds to Java's mmapOperation() + /// Processes at most one entry from the allocation priority queue. /// - /// Returns false if interrupted or no requests available + /// Returns `true` to continue draining the queue, including when a stale + /// entry is skipped. Returns `false` to end the current pass when the queue + /// is empty or a failed allocation has been queued for retry. The worker + /// checks for shutdown between calls. fn mmap_operation( request_table: &Arc>>>, request_queue: &Arc>>,