raftstore: make `on_apply_write_cmd` failpoint injectable
@@ -1085,9 +1085,13 @@ impl ApplyDelegate {
ctx: &ApplyContext,
req: &RaftCmdRequest,
) -> Result<(RaftCmdResponse, ApplyResult)> {
- fail_point!("on_apply_write_cmd", self.id() == 3, |_| {
+ fail_point!(
+ "on_apply_write_cmd",
+ cfg!(release) || self.id() == 3,
+ |_| {
unimplemented!();
- });
+ }
+ );
let requests = req.get_requests();
let mut responses = Vec::with_capacity(requests.len());
