summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2015-03-26 16:40:28 -0400
committerAndy Schwerin <schwerin@mongodb.com>2015-03-27 10:25:09 -0400
commit92593d1af174244ba5560be29908b4f729fec78c (patch)
treed98ba6959b2f91da14aad46794248d2323c7ce08 /src/mongo/db/exec
parent18a3b8528833a478d5a207bfe5fcb8e35673ee8f (diff)
downloadmongo-92593d1af174244ba5560be29908b4f729fec78c.tar.gz
SERVER-17758 Move AutoGet* and Client::*Context to their own file.
The new file is mongo/db/db_raii.h. Also, Client::Context is now OldClientContext and Client::WriteContext is OldClientWriteContext.
Diffstat (limited to 'src/mongo/db/exec')
-rw-r--r--src/mongo/db/exec/stagedebug_cmd.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/db/exec/stagedebug_cmd.cpp b/src/mongo/db/exec/stagedebug_cmd.cpp
index e1fc8e2b068..0e2bf932edb 100644
--- a/src/mongo/db/exec/stagedebug_cmd.cpp
+++ b/src/mongo/db/exec/stagedebug_cmd.cpp
@@ -26,13 +26,16 @@
* it in the license file.
*/
+#include "mongo/platform/basic.h"
+
#include "mongo/base/init.h"
#include "mongo/db/auth/action_set.h"
#include "mongo/db/auth/action_type.h"
#include "mongo/db/auth/privilege.h"
#include "mongo/db/catalog/database.h"
-#include "mongo/db/commands.h"
#include "mongo/db/client.h"
+#include "mongo/db/commands.h"
+#include "mongo/db/db_raii.h"
#include "mongo/db/exec/and_hash.h"
#include "mongo/db/exec/and_sorted.h"
#include "mongo/db/exec/collection_scan.h"
@@ -126,7 +129,7 @@ namespace mongo {
// execution trees.
ScopedTransaction transaction(txn, MODE_IX);
Lock::DBLock lk(txn->lockState(), dbname, MODE_X);
- Client::Context ctx(txn, dbname);
+ OldClientContext ctx(txn, dbname);
// Make sure the collection is valid.
Database* db = ctx.db();