summaryrefslogtreecommitdiff
path: root/src/mongo/shell/shell_utils.h
diff options
context:
space:
mode:
authorADAM David Alan Martin <adam.martin@10gen.com>2019-03-15 14:25:21 -0400
committerADAM David Alan Martin <adam.martin@10gen.com>2019-03-15 14:25:21 -0400
commit29dace0aaeb8299c759a15ea687cce841d509b6b (patch)
tree8369e38dfc0a44fb2b01ed51c73b29114bcc9a37 /src/mongo/shell/shell_utils.h
parentc83b8d8aab53f7545851a76425b2f2cd7c598cbd (diff)
downloadmongo-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.h9
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;