commit the index wtxn before the index-scheduler wtxn

This commit is contained in:
Tamo 2025-01-22 16:21:00 +01:00 committed by Louis Dureuil
parent eda09a54da
commit d4d82fbd0c
No known key found for this signature in database
2 changed files with 12 additions and 7 deletions

View file

@ -406,7 +406,8 @@ impl IndexSchedulerHandle {
.recv_timeout(std::time::Duration::from_secs(1)) {
Ok((_, true)) => continue,
Ok((b, false)) => panic!("The scheduler was supposed to be down but successfully moved to the next breakpoint: {b:?}"),
Err(RecvTimeoutError::Timeout | RecvTimeoutError::Disconnected) => break,
Err(RecvTimeoutError::Timeout) => panic!(),
Err(RecvTimeoutError::Disconnected) => break,
}
}
}