summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/validate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/validate.cpp')
-rw-r--r--src/mongo/db/commands/validate.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/commands/validate.cpp b/src/mongo/db/commands/validate.cpp
index a416085d32f..2cb7c623a0b 100644
--- a/src/mongo/db/commands/validate.cpp
+++ b/src/mongo/db/commands/validate.cpp
@@ -77,8 +77,7 @@ namespace mongo {
}
Client::ReadContext ctx(ns_string.ns());
-
- Database* db = cc().database();
+ Database* db = ctx.ctx().db();
if ( !db ) {
errmsg = "database not found";
return false;