get rid of setClient - all Database storage is in Client::Context

This commit is contained in:
Eliot Horowitz
2010-01-29 17:22:34 -05:00
parent c5c56cd612
commit afa43dc8cd
22 changed files with 317 additions and 311 deletions

View File

@@ -316,8 +316,7 @@ namespace QueryOptimizerTests {
namespace QueryPlanTests {
class Base {
public:
Base() : indexNum_( 0 ) {
setClient( ns() );
Base() : _ctx( ns() ) , indexNum_( 0 ) {
string err;
userCreateNS( ns(), BSONObj(), err, false );
}
@@ -357,6 +356,7 @@ namespace QueryOptimizerTests {
}
private:
dblock lk_;
Client::Context _ctx;
int indexNum_;
static DBDirectClient client_;
};
@@ -595,8 +595,7 @@ namespace QueryOptimizerTests {
namespace QueryPlanSetTests {
class Base {
public:
Base() {
setClient( ns() );
Base() : _context( ns() ){
string err;
userCreateNS( ns(), BSONObj(), err, false );
}
@@ -625,6 +624,7 @@ namespace QueryOptimizerTests {
static NamespaceDetails *nsd() { return nsdetails( ns() ); }
private:
dblock lk_;
Client::Context _context;
};
class NoIndexes : public Base {