| 426 | struct ExtUpdateOperatorMul { |
| 427 | static const char* name; |
| 428 | static Future<Void> execute(Reference<IReadWriteContext> cx, |
| 429 | StringRef const& path, |
| 430 | bson::BSONElement const& element) { |
| 431 | DataValue valuetoMultiply(element); |
| 432 | if (valuetoMultiply.getSortType() != DVTypeCode::NUMBER) |
| 433 | throw inc_or_mul_with_non_number(); |
| 434 | |
| 435 | return getValueAndMultiply(cx, path, valuetoMultiply); |
| 436 | } |
| 437 | }; |
| 438 | REGISTER_UPDATE_OPERATOR(ExtUpdateOperatorMul, "$mul"); |
| 439 |
nothing calls this directly
no test coverage detected