fix(ecstore): fence restore final commit by operation id (#5062)

Refs rustfs/backlog#1356

Co-authored-by: heihutu <heihutu@gmail.com>
This commit is contained in:
houseme
2026-07-20 20:08:55 +08:00
committed by GitHub
parent b44e82fef1
commit 35f3599992
4 changed files with 481 additions and 17 deletions
@@ -246,6 +246,14 @@ impl MockWarmBackend {
MockGetBarrier { state }
}
/// Arm a one-shot pause before the next tier GET, then continue normally
/// after the test releases it.
pub async fn arm_get_barrier(&self) -> MockGetBarrier {
let state = Arc::new(MockGetBarrierState::default());
*self.inner.get_barrier.lock().await = Some(Arc::clone(&state));
MockGetBarrier { state }
}
// ---- fault injection -------------------------------------------------
/// Replace the entire fault configuration.