summaryrefslogtreecommitdiff
path: root/s/strategy.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2011-01-04 00:40:41 -0500
committerEliot Horowitz <eliot@10gen.com>2011-01-04 00:40:41 -0500
commitb828d21630d8715fff5a30c682a51ab79880093d (patch)
treecbbc46069dcfc08ab1525ec06a5dff5967dde148 /s/strategy.h
parent4315a900ae604e11f2d9d68d1e6f87b8aa01dddc (diff)
downloadmongo-b828d21630d8715fff5a30c682a51ab79880093d.tar.gz
ran astyle SERVER-2304
Diffstat (limited to 's/strategy.h')
-rw-r--r--s/strategy.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/s/strategy.h b/s/strategy.h
index e8ec0fe6cdb..10a5a3f8427 100644
--- a/s/strategy.h
+++ b/s/strategy.h
@@ -23,21 +23,21 @@
#include "request.h"
namespace mongo {
-
+
class Strategy {
public:
- Strategy(){}
+ Strategy() {}
virtual ~Strategy() {}
virtual void queryOp( Request& r ) = 0;
virtual void getMore( Request& r ) = 0;
virtual void writeOp( int op , Request& r ) = 0;
-
+
protected:
void doWrite( int op , Request& r , const Shard& shard , bool checkVersion = true );
void doQuery( Request& r , const Shard& shard );
-
+
void insert( const Shard& shard , const char * ns , const BSONObj& obj );
-
+
};
extern Strategy * SINGLE;