diff options
Diffstat (limited to 'src/mongo/db/ops/count.cpp')
-rw-r--r-- | src/mongo/db/ops/count.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mongo/db/ops/count.cpp b/src/mongo/db/ops/count.cpp index 5ae6f8ed9c0..a602a1c4478 100644 --- a/src/mongo/db/ops/count.cpp +++ b/src/mongo/db/ops/count.cpp @@ -66,10 +66,14 @@ namespace mongo { return num; } - long long runCount( const string& ns, const BSONObj &cmd, string &err, int &errCode ) { + long long runCount(OperationContext* txn, + const string& ns, + const BSONObj &cmd, + string &err, + int &errCode) { // Lock 'ns'. Client::Context cx(ns); - Collection* collection = cx.db()->getCollection(ns); + Collection* collection = cx.db()->getCollection(txn, ns); if (NULL == collection) { err = "ns missing"; |