diff options
author | Nick Zolnierz <nicholas.zolnierz@mongodb.com> | 2019-05-15 12:48:54 -0400 |
---|---|---|
committer | Nick Zolnierz <nicholas.zolnierz@mongodb.com> | 2019-05-16 10:49:20 -0400 |
commit | 87c686b32ae4e59bea88f42e4a1d6fcb90c4f146 (patch) | |
tree | fcd9bfcae914b446baf99174a412fc685faacf47 /src/mongo/db/ops/update.cpp | |
parent | 06c7e27f2e7a668d81baf02d89f422cdda205fce (diff) | |
download | mongo-87c686b32ae4e59bea88f42e4a1d6fcb90c4f146.tar.gz |
SERVER-41022 Remove dependency on expressions_mongod_only in parsed_update library
Diffstat (limited to 'src/mongo/db/ops/update.cpp')
-rw-r--r-- | src/mongo/db/ops/update.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/ops/update.cpp b/src/mongo/db/ops/update.cpp index e42c6786f2a..a506bb88c0c 100644 --- a/src/mongo/db/ops/update.cpp +++ b/src/mongo/db/ops/update.cpp @@ -41,6 +41,7 @@ #include "mongo/db/concurrency/d_concurrency.h" #include "mongo/db/concurrency/write_conflict_exception.h" #include "mongo/db/exec/update_stage.h" +#include "mongo/db/matcher/extensions_callback_real.h" #include "mongo/db/op_observer.h" #include "mongo/db/query/explain.h" #include "mongo/db/query/get_executor.h" @@ -92,7 +93,8 @@ UpdateResult update(OperationContext* opCtx, Database* db, const UpdateRequest& } // Parse the update, get an executor for it, run the executor, get stats out. - ParsedUpdate parsedUpdate(opCtx, &request); + const ExtensionsCallbackReal extensionsCallback(opCtx, &request.getNamespaceString()); + ParsedUpdate parsedUpdate(opCtx, &request, extensionsCallback); uassertStatusOK(parsedUpdate.parseRequest()); OpDebug* const nullOpDebug = nullptr; |