Skip to content

Commit

Permalink
chore: make explicit what the insufficient_capacity_err() logs
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedld committed Jul 26, 2024
1 parent ca32c1a commit b673505
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions datafusion/execution/src/memory_pool/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,9 @@ impl MemoryPool for FairSpillPool {

/// Constructs a resources error based upon the individual [`MemoryReservation`].
///
/// The error references the total bytes affiliated with the reservation's
/// [`MemoryConsumer`], and not the total within the collective [`MemoryPool`].
/// The error references the `bytes already allocated` for the reservation,
/// and not the total within the collective [`MemoryPool`],
/// nor the total across multiple reservations with the same [`MemoryConsumer`].
#[inline(always)]
fn insufficient_capacity_err(
reservation: &MemoryReservation,
Expand Down

0 comments on commit b673505

Please sign in to comment.