diff options
Diffstat (limited to 'src/mongo/db/ops/update.cpp')
-rw-r--r-- | src/mongo/db/ops/update.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/ops/update.cpp b/src/mongo/db/ops/update.cpp index a600f37a543..f6e0fcd3eaa 100644 --- a/src/mongo/db/ops/update.cpp +++ b/src/mongo/db/ops/update.cpp @@ -62,7 +62,7 @@ UpdateResult update(OperationContext* opCtx, Database* db, const UpdateRequest& invariant(!request.isExplain()); const NamespaceString& nsString = request.getNamespaceString(); - Collection* collection = db->getCollection(opCtx, nsString); + Collection* collection = CollectionCatalog::get(opCtx).lookupCollectionByNamespace(nsString); // The update stage does not create its own collection. As such, if the update is // an upsert, create the collection that the update stage inserts into beforehand. |