summaryrefslogtreecommitdiff
path: root/s/shard.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-04-28 14:36:41 -0400
committerEliot Horowitz <eliot@10gen.com>2010-04-28 14:36:41 -0400
commit00c1bff5c1116c2e7fb39029fa8467d343e0dc56 (patch)
tree94f93ca562dd96f3e3c7358157028c55df4ce9d1 /s/shard.h
parent6fab348c026866e663067068e28244a8afa28538 (diff)
downloadmongo-00c1bff5c1116c2e7fb39029fa8467d343e0dc56.tar.gz
listDatabases works sharded SERVER-1019
Diffstat (limited to 's/shard.h')
-rw-r--r--s/shard.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/s/shard.h b/s/shard.h
index 3ff171186fb..8a02f63a7c8 100644
--- a/s/shard.h
+++ b/s/shard.h
@@ -99,6 +99,13 @@ namespace mongo {
bool ok() const {
return _addr.size() > 0 && _addr.size() > 0;
}
+
+ BSONObj runCommand( const string& db , const string& simple ){
+ return runCommand( db , BSON( simple << 1 ) );
+ }
+ BSONObj runCommand( const string& db , const BSONObj& cmd );
+
+ static void getAllShards( list<Shard>& all );
static Shard EMPTY;