diff options
Diffstat (limited to 's/strategy.h')
-rw-r--r-- | s/strategy.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/s/strategy.h b/s/strategy.h index fbe0d50d058..88540fac4e0 100644 --- a/s/strategy.h +++ b/s/strategy.h @@ -24,11 +24,14 @@ namespace mongo { }; + extern Strategy * SINGLE; + extern Strategy * SHARDED; + void checkShardVersion( DBClientBase & conn , const string& ns , bool authoritative = false ); bool setShardVersion( DBClientBase & conn , const string& ns , ServerShardVersion version , bool authoritative , BSONObj& result ); - extern Strategy * SINGLE; - extern Strategy * SHARDED; + bool lockNamespaceOnServer( const string& server , const string& ns ); + bool lockNamespaceOnServer( DBClientBase& conn , const string& ns ); } |