summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/recovery_unit.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/storage/recovery_unit.h')
-rw-r--r--src/mongo/db/storage/recovery_unit.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mongo/db/storage/recovery_unit.h b/src/mongo/db/storage/recovery_unit.h
index a4b06e2f316..2e641cd94d0 100644
--- a/src/mongo/db/storage/recovery_unit.h
+++ b/src/mongo/db/storage/recovery_unit.h
@@ -647,7 +647,7 @@ public:
kCommitting,
};
- std::string toString(State state) const {
+ static std::string toString(State state) {
switch (state) {
case State::kInactive:
return "Inactive";
@@ -665,6 +665,13 @@ public:
MONGO_UNREACHABLE;
}
+ /**
+ * Exposed for debugging purposes.
+ */
+ State getState() {
+ return _getState();
+ }
+
void setMustBeTimestamped() {
_mustBeTimestamped = true;
}