summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbhelpers.h
diff options
context:
space:
mode:
authorKyle Suarez <kyle.suarez@mongodb.com>2018-03-20 15:30:41 -0400
committerKyle Suarez <kyle.suarez@mongodb.com>2018-03-20 15:43:29 -0400
commit76cef6675d80ab57b98af11e6e47868a60e11cbb (patch)
tree6cdf9c90415265502ae25c436d894ce5d781e7d0 /src/mongo/db/dbhelpers.h
parent2ee6908f1c73dd50d6425e3462ccac2582deb2f3 (diff)
downloadmongo-76cef6675d80ab57b98af11e6e47868a60e11cbb.tar.gz
SERVER-29051 create data files during rollback via recover to timestamp
Diffstat (limited to 'src/mongo/db/dbhelpers.h')
-rw-r--r--src/mongo/db/dbhelpers.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/dbhelpers.h b/src/mongo/db/dbhelpers.h
index 0166a413041..75699cbafa8 100644
--- a/src/mongo/db/dbhelpers.h
+++ b/src/mongo/db/dbhelpers.h
@@ -166,6 +166,14 @@ struct Helpers {
*/
Status goingToDelete(const BSONObj& o);
+ std::string directoryName() const {
+ return _root.generic_string();
+ }
+
+ std::string fileName() const {
+ return _file.generic_string();
+ }
+
private:
boost::filesystem::path _root;
boost::filesystem::path _file;