diff options
author | Brandon Diamond <brandon@10gen.com> | 2011-10-28 16:27:59 -0400 |
---|---|---|
committer | Brandon Diamond <brandon@10gen.com> | 2011-10-28 16:28:55 -0400 |
commit | 8a79e63cbc99be8f475fa0451095f07a9ac27e5b (patch) | |
tree | 9445a4f488044f0cefcd277964d3c75490cdb571 /tools | |
parent | c65c75bb10689f419b863c824387444a01582aa4 (diff) | |
download | mongo-8a79e63cbc99be8f475fa0451095f07a9ac27e5b.tar.gz |
CS-1535: Added method for toggling stdout/stderr in tools
Diffstat (limited to 'tools')
-rw-r--r-- | tools/tool.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/tool.h b/tools/tool.h index e6694f30823..e40109362c5 100644 --- a/tools/tool.h +++ b/tools/tool.h @@ -82,9 +82,13 @@ namespace mongo { return _db + "." + _coll; } + void useStandardOutput( bool mode ) { + _usesstdout = mode; + } + bool isMaster(); bool isMongos(); - + virtual void preSetup() {} virtual int run() = 0; |