diff options
-rw-r--r-- | s/dbgrid.vcproj | 4 | ||||
-rw-r--r-- | s/request.h | 20 | ||||
-rw-r--r-- | s/strategy.h | 27 |
3 files changed, 33 insertions, 18 deletions
diff --git a/s/dbgrid.vcproj b/s/dbgrid.vcproj index af03b1ff1a7..14261873350 100644 --- a/s/dbgrid.vcproj +++ b/s/dbgrid.vcproj @@ -515,6 +515,10 @@ RelativePath=".\shard.h"
>
</File>
+ <File
+ RelativePath=".\strategy.h"
+ >
+ </File>
<Filter
Name="Header Shared"
>
diff --git a/s/request.h b/s/request.h index efc15210204..f884959ea24 100644 --- a/s/request.h +++ b/s/request.h @@ -69,22 +69,6 @@ namespace mongo { ShardInfo * _shardInfo; }; - class Strategy { - public: - 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 , string server ); - void doQuery( Request& r , string server ); - - void insert( string server , const char * ns , const BSONObj& obj ); - - }; - - extern Strategy * SINGLE; - extern Strategy * SHARDED; } + +#include "strategy.h" diff --git a/s/strategy.h b/s/strategy.h new file mode 100644 index 00000000000..43ae74ded15 --- /dev/null +++ b/s/strategy.h @@ -0,0 +1,27 @@ +// strategy.h
+
+ +#pragma once + +namespace mongo { + + class Strategy { + public: + 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 , string server ); + void doQuery( Request& r , string server ); + + void insert( string server , const char * ns , const BSONObj& obj ); + + }; + + extern Strategy * SINGLE; + extern Strategy * SHARDED; +} + |