Commit b13db34
committed
fix: remove weak postcheck from validator removal to prevent idempotency skip
The validator-removal operation used a postcheck that matched
options.validationLevel=strict, which was already satisfied when
the original validator also used strict. This caused the idempotency
probe to skip the collMod entirely, leaving the validator in place.
Empty the postcheck array so the operation always executes. The collMod
with validator:{} is inherently idempotent so no safety is lost.1 parent 89ed81b commit b13db34
2 files changed
Lines changed: 3 additions & 15 deletions
Lines changed: 1 addition & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
| 246 | + | |
257 | 247 | | |
258 | 248 | | |
259 | 249 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
584 | 584 | | |
585 | 585 | | |
586 | 586 | | |
587 | | - | |
| 587 | + | |
588 | 588 | | |
589 | 589 | | |
590 | 590 | | |
| |||
607 | 607 | | |
608 | 608 | | |
609 | 609 | | |
610 | | - | |
611 | | - | |
612 | | - | |
| 610 | + | |
613 | 611 | | |
614 | 612 | | |
615 | 613 | | |
| |||
0 commit comments