diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2015-03-26 16:40:28 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2015-03-27 10:25:09 -0400 |
commit | 92593d1af174244ba5560be29908b4f729fec78c (patch) | |
tree | d98ba6959b2f91da14aad46794248d2323c7ce08 /src/mongo/dbtests/counttests.cpp | |
parent | 18a3b8528833a478d5a207bfe5fcb8e35673ee8f (diff) | |
download | mongo-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/dbtests/counttests.cpp')
-rw-r--r-- | src/mongo/dbtests/counttests.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/dbtests/counttests.cpp b/src/mongo/dbtests/counttests.cpp index 918b87ed3d7..5233c18d2bf 100644 --- a/src/mongo/dbtests/counttests.cpp +++ b/src/mongo/dbtests/counttests.cpp @@ -30,11 +30,12 @@ #include <boost/thread/thread.hpp> +#include "mongo/db/catalog/collection.h" #include "mongo/db/db.h" +#include "mongo/db/db_raii.h" #include "mongo/db/dbdirectclient.h" #include "mongo/db/dbhelpers.h" #include "mongo/db/json.h" -#include "mongo/db/catalog/collection.h" #include "mongo/db/operation_context_impl.h" #include "mongo/dbtests/dbtests.h" @@ -112,7 +113,7 @@ namespace CountTests { ScopedTransaction _scopedXact; Lock::DBLock _lk; - Client::Context _context; + OldClientContext _context; Database* _database; Collection* _collection; |