diff options
author | Scott Hernandez <scotthernandez@gmail.com> | 2014-12-22 17:32:27 -0500 |
---|---|---|
committer | Scott Hernandez <scotthernandez@gmail.com> | 2015-01-02 14:21:08 -0500 |
commit | 8384c878b542352ba88ecade1e675b8412f2655f (patch) | |
tree | a9b40ee6ec4fb837b99a2d3a9e37b6ece12a650c /src/mongo/db/ops | |
parent | 8b37507dd51cdf058377a24ca0171e7fae6f2c6b (diff) | |
download | mongo-8384c878b542352ba88ecade1e675b8412f2655f.tar.gz |
SERVER-16502: make getCollection const and not require an OpContext
Diffstat (limited to 'src/mongo/db/ops')
-rw-r--r-- | src/mongo/db/ops/delete.cpp | 2 | ||||
-rw-r--r-- | src/mongo/db/ops/update.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/ops/delete.cpp b/src/mongo/db/ops/delete.cpp index fcaa2b6d02b..c35697b75f5 100644 --- a/src/mongo/db/ops/delete.cpp +++ b/src/mongo/db/ops/delete.cpp @@ -60,7 +60,7 @@ namespace mongo { Collection* collection = NULL; if (db) { - collection = db->getCollection(txn, nsString.ns()); + collection = db->getCollection(nsString.ns()); } ParsedDelete parsedDelete(txn, &request); diff --git a/src/mongo/db/ops/update.cpp b/src/mongo/db/ops/update.cpp index 12b2303ccc2..e4a008b3b06 100644 --- a/src/mongo/db/ops/update.cpp +++ b/src/mongo/db/ops/update.cpp @@ -61,7 +61,7 @@ namespace mongo { invariant(!request.isExplain()); const NamespaceString& nsString = request.getNamespaceString(); - Collection* collection = db->getCollection(txn, nsString.ns()); + Collection* collection = db->getCollection(nsString.ns()); // 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. |