mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-15 20:20:38 +00:00
yield after ever redo execution
This commit is contained in:
@@ -145,6 +145,9 @@ async fn client(
|
||||
for _ in 0..n_redos {
|
||||
let page = redo_work.execute(&mgr).await.unwrap();
|
||||
assert_eq!(page.remaining(), 8192);
|
||||
// The real pageserver will rarely if ever do 2 walredos in a row without
|
||||
// yielding to the executor.
|
||||
tokio::task::yield_now().await;
|
||||
}
|
||||
start.elapsed()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user