diff options
author | Antonin Kral <a.kral@bobek.cz> | 2011-09-14 17:08:06 +0200 |
---|---|---|
committer | Antonin Kral <a.kral@bobek.cz> | 2011-09-14 17:08:06 +0200 |
commit | 5d342a758c6095b4d30aba0750b54f13b8916f51 (patch) | |
tree | 762e9aa84781f5e3b96db2c02d356c29cf0217c0 /tools/tool.h | |
parent | cbe2d992e9cd1ea66af9fa91df006106775d3073 (diff) | |
download | mongodb-5d342a758c6095b4d30aba0750b54f13b8916f51.tar.gz |
Imported Upstream version 2.0.0
Diffstat (limited to 'tools/tool.h')
-rw-r--r-- | tools/tool.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/tool.h b/tools/tool.h index f6124b8..e6694f3 100644 --- a/tools/tool.h +++ b/tools/tool.h @@ -28,6 +28,7 @@ #include "client/dbclient.h" #include "db/instance.h" +#include "db/matcher.h" using std::string; @@ -82,6 +83,7 @@ namespace mongo { } bool isMaster(); + bool isMongos(); virtual void preSetup() {} @@ -92,6 +94,8 @@ namespace mongo { virtual void printExtraHelp( ostream & out ) {} virtual void printExtraHelpAfter( ostream & out ) {} + virtual void printVersion(ostream &out); + protected: mongo::DBClientBase &conn( bool slaveIfPaired = false ); |