14
virtual ~Strategy() {}
15
virtual void queryOp( Request& r ) = 0;
16
virtual void getMore( Request& r ) = 0;
17
virtual void writeOp( int op , Request& r ) = 0;
20
void doWrite( int op , Request& r , string server );
21
void doQuery( Request& r , string server );
23
void insert( string server , const char * ns , const BSONObj& obj );
27
extern Strategy * SINGLE;
28
extern Strategy * SHARDED;
30
bool setShardVersion( DBClientBase & conn , const string& ns , ShardChunkVersion version , bool authoritative , BSONObj& result );
32
bool lockNamespaceOnServer( const string& server , const string& ns );
33
bool lockNamespaceOnServer( DBClientBase& conn , const string& ns );