| 312 | struct ExtUpdateOperatorRename { |
| 313 | static const char* name; |
| 314 | static Future<Void> execute(Reference<IReadWriteContext> cx, |
| 315 | StringRef const& path, |
| 316 | bson::BSONElement const& element) { |
| 317 | Reference<IReadWriteContext> firstCx = cx->getSubContext(path.toString()); |
| 318 | Reference<IReadWriteContext> secondCx = cx->getSubContext(encodeMaybeDotted(element.String())); |
| 319 | |
| 320 | return doRenameActor(firstCx, secondCx, cx, upOneLevel(element.String()), getLastPart(element.String())); |
| 321 | } |
| 322 | }; |
| 323 | |
| 324 | REGISTER_UPDATE_OPERATOR(ExtUpdateOperatorRename, "$rename"); |
nothing calls this directly
no test coverage detected