summaryrefslogtreecommitdiff
path: root/s/strategy.h
diff options
context:
space:
mode:
Diffstat (limited to 's/strategy.h')
-rw-r--r--s/strategy.h7
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 );
}