diff options
author | Kyle Suarez <kyle.suarez@mongodb.com> | 2018-03-07 13:47:50 -0500 |
---|---|---|
committer | Kyle Suarez <kyle.suarez@mongodb.com> | 2018-03-07 13:47:50 -0500 |
commit | 86e1b61020ebe8c9490bce56b26b8037581a9c72 (patch) | |
tree | 06a8f80fedc62174ea87ec4ae4090f2230ecff93 /src/mongo/db/repl/rollback_impl.h | |
parent | 905194e3afac93289be65b40ede265e8fbfda6a4 (diff) | |
download | mongo-86e1b61020ebe8c9490bce56b26b8037581a9c72.tar.gz |
SERVER-33663 create parameter to control rollback data file creation
Users can suppress the creation of rollback data files by setting the
'createRollbackDataFiles' setParameter to false.
Diffstat (limited to 'src/mongo/db/repl/rollback_impl.h')
-rw-r--r-- | src/mongo/db/repl/rollback_impl.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/repl/rollback_impl.h b/src/mongo/db/repl/rollback_impl.h index 910028c0795..6fa56bc8427 100644 --- a/src/mongo/db/repl/rollback_impl.h +++ b/src/mongo/db/repl/rollback_impl.h @@ -173,6 +173,12 @@ public: return _namespacesForOp(oplogEntry); } + /** + * Returns true if the rollback system should write out data files containing documents that + * will be deleted by rollback. + */ + static bool shouldCreateDataFiles(); + private: /** * Returns if shutdown was called on this rollback process. |