diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-04-28 14:36:41 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-04-28 14:36:41 -0400 |
commit | 00c1bff5c1116c2e7fb39029fa8467d343e0dc56 (patch) | |
tree | 94f93ca562dd96f3e3c7358157028c55df4ce9d1 /s/shard.h | |
parent | 6fab348c026866e663067068e28244a8afa28538 (diff) | |
download | mongo-00c1bff5c1116c2e7fb39029fa8467d343e0dc56.tar.gz |
listDatabases works sharded SERVER-1019
Diffstat (limited to 's/shard.h')
-rw-r--r-- | s/shard.h | 7 |
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; |