SERVER-134940ClosedFixed

Threat the RSWB command counter as a monotonic value

Currently, when we are rolling back a RSWB state change, we are [decrementing|https://github.com/10gen/mongo/blob/04d26232f8c23d24cf8ef15371b8a5ff8bdca553/src/mongo/db/topology/user_write_block/writes_recoverable_critical_section_service.cpp#L546-L551] the corresponding serverStatus metric. As part of this ticket, we should consider this metric monotonic and therefore skip the metric decrement in case of a rollback.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc10249.0.9
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.