SERVER-134985ClosedFixed

Enable collection of write failures for inserts on mongod

Remove the non-read guard in collectQueryStatsMongodReadErrored   Write tests to make sure thrown errors are recorded in query stats, e.g. WouldChangeOwningShard

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-rc1025
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.