diff options
author | ADAM David Alan Martin <adam.martin@10gen.com> | 2019-03-15 14:25:21 -0400 |
---|---|---|
committer | ADAM David Alan Martin <adam.martin@10gen.com> | 2019-03-15 14:25:21 -0400 |
commit | 29dace0aaeb8299c759a15ea687cce841d509b6b (patch) | |
tree | 8369e38dfc0a44fb2b01ed51c73b29114bcc9a37 /src/mongo/shell/shell_utils.h | |
parent | c83b8d8aab53f7545851a76425b2f2cd7c598cbd (diff) | |
download | mongo-29dace0aaeb8299c759a15ea687cce841d509b6b.tar.gz |
SERVER-39195 Make shell history file placement more correct.
Shell history file placement should rely upon more than just the
`$HOME` environment variable.
Resolves: #1294
Diffstat (limited to 'src/mongo/shell/shell_utils.h')
-rw-r--r-- | src/mongo/shell/shell_utils.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mongo/shell/shell_utils.h b/src/mongo/shell/shell_utils.h index 55f574cfcca..b3abfda9114 100644 --- a/src/mongo/shell/shell_utils.h +++ b/src/mongo/shell/shell_utils.h @@ -29,6 +29,11 @@ #pragma once +#include <boost/filesystem.hpp> +#include <map> +#include <set> +#include <string> + #include "mongo/db/jsobj.h" #include "mongo/stdx/mutex.h" #include "mongo/util/concurrency/mutex.h" @@ -40,7 +45,7 @@ class DBClientBase; namespace shell_utils { -extern std::string _dbConnect; +extern std::string dbConnect; void RecordMyLocation(const char* _argv0); void installShellUtils(Scope& scope); @@ -48,7 +53,7 @@ void installShellUtils(Scope& scope); void initScope(Scope& scope); void onConnect(DBClientBase& c); -const char* getUserDir(); +boost::filesystem::path getHistoryFilePath(); BSONElement singleArg(const BSONObj& args); extern const BSONObj undefinedReturn; |