summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbhelpers.h
diff options
context:
space:
mode:
authorKyle Suarez <kyle.suarez@mongodb.com>2018-03-28 08:33:57 -0400
committerKyle Suarez <kyle.suarez@mongodb.com>2018-03-28 08:33:57 -0400
commitfee5ac1166c2b4a0a11e00e58f2d9c12d4567e25 (patch)
tree572767fc617d098f832856a3a76f2a5bbc77c0c7 /src/mongo/db/dbhelpers.h
parent8060a008b5dce908553cec373bd6667c30b97fe0 (diff)
downloadmongo-fee5ac1166c2b4a0a11e00e58f2d9c12d4567e25.tar.gz
SERVER-21693 generate a summary after rollback via recover to timestamp
Diffstat (limited to 'src/mongo/db/dbhelpers.h')
-rw-r--r--src/mongo/db/dbhelpers.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/mongo/db/dbhelpers.h b/src/mongo/db/dbhelpers.h
index 75699cbafa8..45c21ddd329 100644
--- a/src/mongo/db/dbhelpers.h
+++ b/src/mongo/db/dbhelpers.h
@@ -166,13 +166,21 @@ struct Helpers {
*/
Status goingToDelete(const BSONObj& o);
- std::string directoryName() const {
- return _root.generic_string();
+ /**
+ * A path object describing the directory containing the file with deleted documents.
+ */
+ const auto& root() const& {
+ return _root;
}
+ void root() && = delete;
- std::string fileName() const {
- return _file.generic_string();
+ /**
+ * A path object describing the actual file containing BSON documents.
+ */
+ const auto& file() const& {
+ return _file;
}
+ void file() && = delete;
private:
boost::filesystem::path _root;