Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove committed Dec 27, 2024
1 parent f1ed927 commit 45b020e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions native/core/src/execution/shuffle/shuffle_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,12 @@ impl PartitionBuffer {
let frozen_capacity_old = self.frozen.capacity();
let mut cursor = Cursor::new(&mut self.frozen);
cursor.seek(SeekFrom::End(0))?;
write_ipc_compressed(&frozen_batch, &mut cursor, &self.codec, &metrics.encode_time)?;
write_ipc_compressed(
&frozen_batch,
&mut cursor,
&self.codec,
&metrics.encode_time,
)?;

mem_diff += (self.frozen.capacity() - frozen_capacity_old) as isize;
Ok(mem_diff)
Expand Down Expand Up @@ -1042,7 +1047,6 @@ impl ShuffleRepartitioner {
&self.metrics,
)?;


let mut spills = self.spills.lock().await;
let used = self.reservation.size();
self.metrics.spill_count.add(1);
Expand Down

0 comments on commit 45b020e

Please sign in to comment.