summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbhelpers.h
diff options
context:
space:
mode:
authorKyle Suarez <kyle.suarez@mongodb.com>2018-03-21 12:19:44 -0400
committerKyle Suarez <kyle.suarez@mongodb.com>2018-03-21 12:19:44 -0400
commit0d409c4d63afb585b329187ff904be9068df9466 (patch)
treeb6e8eb10c578315f9a2a0335f9ace4b46b434489 /src/mongo/db/dbhelpers.h
parentc06253cf734b0d5bde34f3aadefc091bfaefcfe1 (diff)
downloadmongo-0d409c4d63afb585b329187ff904be9068df9466.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;