summaryrefslogtreecommitdiff
path: root/src/mongo/shell/shell_utils.h
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2012-04-05 19:34:10 -0700
committerAaron <aaron@10gen.com>2012-04-10 20:21:46 -0700
commiteaa316bf29117152a828b06bb3e5845b2a2ad6a3 (patch)
tree86c98122e565e44378602d1a909ca274e652ab8f /src/mongo/shell/shell_utils.h
parent286122945af26464c95480c4f283ad7b9eac9aa7 (diff)
downloadmongo-eaa316bf29117152a828b06bb3e5845b2a2ad6a3.tar.gz
Move mongo process related utilities from shell_utils to shell_launcher.
Diffstat (limited to 'src/mongo/shell/shell_utils.h')
-rw-r--r--src/mongo/shell/shell_utils.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/mongo/shell/shell_utils.h b/src/mongo/shell/shell_utils.h
index 2d8ec73e4ea..12a580eff87 100644
--- a/src/mongo/shell/shell_utils.h
+++ b/src/mongo/shell/shell_utils.h
@@ -32,17 +32,12 @@ namespace mongo {
void RecordMyLocation( const char *_argv0 );
void installShellUtils( Scope& scope );
- // Scoped management of mongo program instances. Simple implementation:
- // destructor kills all mongod instances created by the shell.
- struct MongoProgramScope {
- MongoProgramScope() {} // Avoid 'unused variable' warning.
- ~MongoProgramScope();
- };
- void KillMongoProgramInstances();
-
void initScope( Scope &scope );
void onConnect( DBClientWithCommands &c );
const char* getUserDir();
+
+ BSONElement oneArg(const BSONObj& args);
+ extern const BSONObj undefined_;
}
}