summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbhelpers.h
diff options
context:
space:
mode:
authorSpencer Jackson <spencer.jackson@mongodb.com>2015-11-13 17:05:46 -0500
committerSpencer Jackson <spencer.jackson@mongodb.com>2015-11-13 17:25:31 -0500
commit544c101c7c479b46d99a144a9156a4f9e258b0da (patch)
tree10655c4a8f26ec24f393dd3176151bed38843309 /src/mongo/db/dbhelpers.h
parent51133ea85e4f1309ef3b0f278f52d58114d8d27e (diff)
downloadmongo-544c101c7c479b46d99a144a9156a4f9e258b0da.tar.gz
SERVER-21404: Add rollback file coverage to ESE
Diffstat (limited to 'src/mongo/db/dbhelpers.h')
-rw-r--r--src/mongo/db/dbhelpers.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/dbhelpers.h b/src/mongo/db/dbhelpers.h
index 2c77bf8ca2d..5be0ba37185 100644
--- a/src/mongo/db/dbhelpers.h
+++ b/src/mongo/db/dbhelpers.h
@@ -33,11 +33,13 @@
#include "mongo/db/db.h"
#include "mongo/db/record_id.h"
+#include "mongo/db/storage/data_protector.h"
namespace mongo {
class Collection;
class Cursor;
+class DataProtector;
class OperationContext;
struct KeyRange;
struct WriteConcernOptions;
@@ -217,6 +219,7 @@ struct Helpers {
public:
RemoveSaver(const std::string& type, const std::string& ns, const std::string& why);
+ ~RemoveSaver();
/**
* Writes document to file. File is created lazily before writing the first document.
@@ -228,6 +231,7 @@ struct Helpers {
private:
boost::filesystem::path _root;
boost::filesystem::path _file;
+ std::unique_ptr<DataProtector> _protector;
std::unique_ptr<std::ostream> _out;
};
};