summaryrefslogtreecommitdiff
path: root/db/driverHelpers.cpp
diff options
context:
space:
mode:
authorAntonin Kral <a.kral@bobek.cz>2011-03-17 00:05:43 +0100
committerAntonin Kral <a.kral@bobek.cz>2011-03-17 00:05:43 +0100
commit582fc32574a3b158c81e49cb00e6ae59205e66ba (patch)
treeac64a3243e0d2121709f685695247052858115c8 /db/driverHelpers.cpp
parent2761bffa96595ac1698d86bbc2e95ebb0d4d6e93 (diff)
downloadmongodb-582fc32574a3b158c81e49cb00e6ae59205e66ba.tar.gz
Imported Upstream version 1.8.0
Diffstat (limited to 'db/driverHelpers.cpp')
-rw-r--r--db/driverHelpers.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/db/driverHelpers.cpp b/db/driverHelpers.cpp
index d8971ad..d98a33b 100644
--- a/db/driverHelpers.cpp
+++ b/db/driverHelpers.cpp
@@ -24,11 +24,11 @@
#include "pch.h"
#include "jsobj.h"
#include "pdfile.h"
-#include "namespace.h"
+#include "namespace-inl.h"
#include "commands.h"
#include "cmdline.h"
#include "btree.h"
-#include "curop.h"
+#include "curop-inl.h"
#include "../util/background.h"
#include "../scripting/engine.h"
@@ -36,18 +36,18 @@ namespace mongo {
class BasicDriverHelper : public Command {
public:
- BasicDriverHelper( const char * name ) : Command( name ){}
-
+ BasicDriverHelper( const char * name ) : Command( name ) {}
+
virtual LockType locktype() const { return NONE; }
virtual bool slaveOk() const { return true; }
- virtual bool slaveOverrideOk(){ return true; }
+ virtual bool slaveOverrideOk() { return true; }
};
class ObjectIdTest : public BasicDriverHelper {
public:
- ObjectIdTest() : BasicDriverHelper( "driverOIDTest" ){}
- virtual bool run(const string& , BSONObj& cmdObj, string& errmsg, BSONObjBuilder& result, bool fromRepl){
- if ( cmdObj.firstElement().type() != jstOID ){
+ ObjectIdTest() : BasicDriverHelper( "driverOIDTest" ) {}
+ virtual bool run(const string& , BSONObj& cmdObj, string& errmsg, BSONObjBuilder& result, bool fromRepl) {
+ if ( cmdObj.firstElement().type() != jstOID ) {
errmsg = "not oid";
return false;
}