Skip to content

Commit

Permalink
Yield in between
Browse files Browse the repository at this point in the history
  • Loading branch information
arpad-m committed Jun 6, 2024
1 parent ab2159d commit 2fdfcab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pageserver/ctl/src/layers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ pub(crate) async fn main(cmd: &LayerCmd) -> Result<()> {
)
.await;
match stats {
Ok(stats) => println!("Statistics for {file_name}: {stats:#?}\n"),
Ok(stats) => println!("Statistics for {file_name}: {stats:?}\n"),
Err(e) => eprintln!("Error for {file_name}: {e:?}"),
};
});
Expand Down
1 change: 1 addition & 0 deletions pageserver/src/tenant/storage_layer/image_layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ impl ImageLayer {
)
.await?;
stats.push((image_compression, size));
tokio::task::yield_now().await;
}
Ok(stats)
}
Expand Down

0 comments on commit 2fdfcab

Please sign in to comment.