| 249 | struct ExtUpdateOperatorSet { |
| 250 | static const char* name; |
| 251 | static Future<Void> execute(Reference<IReadWriteContext> cx, |
| 252 | StringRef const& path, |
| 253 | bson::BSONElement const& element) { |
| 254 | ASSERT(path == encodeMaybeDotted(element.fieldName())); |
| 255 | cx->getSubContext(path)->clearDescendants(); |
| 256 | insertElementRecursive(element, cx); |
| 257 | return Void(); |
| 258 | } |
| 259 | }; |
| 260 | REGISTER_UPDATE_OPERATOR(ExtUpdateOperatorSet, "$set"); |
| 261 |
nothing calls this directly
no test coverage detected