SERVER-137905In Code Review
add a pre-scan check for prepareConstraintLevel to collMod
The prepare precondition is only checked after the validator scan in collmod_cmd.cpp / collmod_coordinator.cpp has already run. A request with prepare unset therefore does a full collection scan before being rejected with BadValue. We should do a cheap precondition check before the scan.