summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDwight <dmerriman@gmail.com>2009-02-23 13:56:54 -0500
committerDwight <dmerriman@gmail.com>2009-02-23 13:56:54 -0500
commite5e195ee39dd5e1231c0229bcdf6d74a6ecbb27c (patch)
tree5237e8ceab874d787d79d77f5171854d71753e2a
parent4c491e5b9e87d636514194a4ebfc40ff05624143 (diff)
downloadmongo-e5e195ee39dd5e1231c0229bcdf6d74a6ecbb27c.tar.gz
new file
-rw-r--r--s/dbgrid.vcproj4
-rw-r--r--s/request.h20
-rw-r--r--s/strategy.h27
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;
+}
+