diff options
Diffstat (limited to 'db/ops/query.cpp')
-rw-r--r-- | db/ops/query.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/ops/query.cpp b/db/ops/query.cpp index 7614853fb8b..5bd497ee783 100644 --- a/db/ops/query.cpp +++ b/db/ops/query.cpp @@ -224,7 +224,7 @@ namespace mongo { returns -1 on ns does not exist error. */ long long runCount( const char *ns, const BSONObj &cmd, string &err ) { - Client::Context cx(ns); + Client::ReadContext cx(ns); NamespaceDetails *d = nsdetails( ns ); if ( !d ) { err = "ns missing"; |