diff options
author | Eliot Horowitz <eliot@10gen.com> | 2014-06-18 18:15:03 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2014-06-19 01:49:58 -0400 |
commit | b4cafb46595d6e889f8effdca16e98c3f505078e (patch) | |
tree | b3304b672e2d540a72c7ba7424469e9b78bcce74 /src/mongo/dbtests/updatetests.cpp | |
parent | 7ce2ffdbbaac003fb608e81ae03090adef960237 (diff) | |
download | mongo-b4cafb46595d6e889f8effdca16e98c3f505078e.tar.gz |
SERVER-13635 SERVER-1153: can choose heap1 at startup, but doesn't remotely work yet
Diffstat (limited to 'src/mongo/dbtests/updatetests.cpp')
-rw-r--r-- | src/mongo/dbtests/updatetests.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mongo/dbtests/updatetests.cpp b/src/mongo/dbtests/updatetests.cpp index e89997330cf..f486dd0ce3a 100644 --- a/src/mongo/dbtests/updatetests.cpp +++ b/src/mongo/dbtests/updatetests.cpp @@ -52,20 +52,19 @@ namespace UpdateTests { mongo::lastError.release(); } protected: - static void insert( const char *ns, BSONObj o ) { + void insert( const char *ns, BSONObj o ) { client_.insert( ns, o ); } - static void update( const char *ns, BSONObj q, BSONObj o, bool upsert = 0 ) { + void update( const char *ns, BSONObj q, BSONObj o, bool upsert = 0 ) { client_.update( ns, Query( q ), o, upsert ); } - static bool error() { + bool error() { return !client_.getPrevError().getField( "err" ).isNull(); } - DBDirectClient &client() const { return client_; } + DBDirectClient &client() { return client_; } private: - static DBDirectClient client_; + DBDirectClient client_; }; - DBDirectClient ClientBase::client_; class Fail : public ClientBase { public: |