summaryrefslogtreecommitdiff
path: root/s/shard.h
diff options
context:
space:
mode:
Diffstat (limited to 's/shard.h')
-rw-r--r--s/shard.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/s/shard.h b/s/shard.h
index 56780c5eddc..0e014c3f5fe 100644
--- a/s/shard.h
+++ b/s/shard.h
@@ -92,20 +92,14 @@ namespace mongo {
return _ns;
}
+ int numShards(){ return _shards.size(); }
Shard& findShard( const BSONObj & obj );
-
- ShardKey& getShardKey(){
- return _key;
- }
-
- virtual const char * getNS() {
- return "config.sharding";
- }
-
+ ShardKey& getShardKey(){ return _key; }
+
+ virtual const char * getNS(){ return "config.sharding"; }
virtual void serialize(BSONObjBuilder& to);
virtual void unserialize(BSONObj& from);
virtual string modelServer();
-
bool loadByName( const string& ns );
string toString() const;