summaryrefslogtreecommitdiff
path: root/src/mongo/db/ttl.cpp
diff options
context:
space:
mode:
authorScott Hernandez <scotthernandez@gmail.com>2014-12-22 17:32:27 -0500
committerScott Hernandez <scotthernandez@gmail.com>2015-01-02 14:21:08 -0500
commit8384c878b542352ba88ecade1e675b8412f2655f (patch)
treea9b40ee6ec4fb837b99a2d3a9e37b6ece12a650c /src/mongo/db/ttl.cpp
parent8b37507dd51cdf058377a24ca0171e7fae6f2c6b (diff)
downloadmongo-8384c878b542352ba88ecade1e675b8412f2655f.tar.gz
SERVER-16502: make getCollection const and not require an OpContext
Diffstat (limited to 'src/mongo/db/ttl.cpp')
-rw-r--r--src/mongo/db/ttl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/ttl.cpp b/src/mongo/db/ttl.cpp
index b3d9b902c59..a2b5a1fdca3 100644
--- a/src/mongo/db/ttl.cpp
+++ b/src/mongo/db/ttl.cpp
@@ -156,7 +156,7 @@ namespace mongo {
string ns = *it;
Lock::CollectionLock collLock( txn->lockState(), ns, MODE_IS );
- CollectionCatalogEntry* coll = dbEntry->getCollectionCatalogEntry( txn, ns );
+ CollectionCatalogEntry* coll = dbEntry->getCollectionCatalogEntry( ns );
if ( !coll ) {
continue; // skip since collection not found in catalog
@@ -220,7 +220,7 @@ namespace mongo {
Lock::CollectionLock collLock( txn->lockState(), ns, MODE_IX );
- Collection* collection = db->getCollection( txn, ns );
+ Collection* collection = db->getCollection( ns );
if ( !collection ) {
// collection was dropped
return true;