MCPcopy Create free account
hub / github.com/FoundationDB/fdb-document-layer / execute

Method execute

src/ExtOperator.actor.cpp:428–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426struct 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};
438REGISTER_UPDATE_OPERATOR(ExtUpdateOperatorMul, "$mul");
439

Callers

nothing calls this directly

Calls 1

getSortTypeMethod · 0.80

Tested by

no test coverage detected