Skip to content

Commit 91127df

Browse files
committed
sleep
1 parent b350942 commit 91127df

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

riffle-server/src/store/local/uring_io.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ use std::fs::OpenOptions;
2929
use std::io::{Bytes, IoSlice};
3030
use std::os::fd::AsRawFd;
3131
use std::path::Path;
32+
use std::thread::sleep;
33+
use std::time::Duration;
3234
use std::{
3335
fmt::Debug,
3436
fs,
@@ -292,7 +294,10 @@ impl UringIoEngineShard {
292294

293295
let ctx = match ctx {
294296
Some(ctx) => ctx,
295-
None => break 'prepare,
297+
None => {
298+
sleep(Duration::from_millis(5));
299+
break 'prepare;
300+
}
296301
};
297302

298303
let mut ctx = Box::new(ctx);

0 commit comments

Comments
 (0)