| 493 | } |
| 494 | |
| 495 | struct ExtUpdateOperatorBit { |
| 496 | static const char* name; |
| 497 | static Future<Void> execute(Reference<IReadWriteContext> cx, |
| 498 | StringRef const& path, |
| 499 | bson::BSONElement const& element) { |
| 500 | auto obj = element.Obj(); |
| 501 | if (obj.nFields() != 1) |
| 502 | throw invalid_bitwise_update(); |
| 503 | |
| 504 | return getValueAndBitwise(cx, path, obj); |
| 505 | } |
| 506 | }; |
| 507 | |
| 508 | REGISTER_UPDATE_OPERATOR(ExtUpdateOperatorBit, "$bit"); |
| 509 |
nothing calls this directly
no outgoing calls
no test coverage detected