Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions rocketmq-store-local/src/base/allocate_mapped_file_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<RwLock<HashMap<String, Arc<AllocateRequest>>>>,
request_queue: &Arc<RwLock<BinaryHeap<AllocationQueueEntry>>>,
Expand Down