summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl_index_build_state.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl_index_build_state.h')
-rw-r--r--src/mongo/db/repl_index_build_state.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mongo/db/repl_index_build_state.h b/src/mongo/db/repl_index_build_state.h
index 428d1f99004..16e1bbeb34c 100644
--- a/src/mongo/db/repl_index_build_state.h
+++ b/src/mongo/db/repl_index_build_state.h
@@ -209,6 +209,11 @@ public:
MONGO_UNREACHABLE;
}
+ /**
+ * Appends the current state information of the index build to the builder.
+ */
+ void appendBuildInfo(BSONObjBuilder* builder) const;
+
private:
// Represents the index build state.
StateFlag _state = kSetup;
@@ -371,6 +376,11 @@ public:
void setLastOpTimeBeforeInterceptors(repl::OpTime opTime);
void clearLastOpTimeBeforeInterceptors();
+ /**
+ * Appends index build info to builder.
+ */
+ void appendBuildInfo(BSONObjBuilder* builder) const;
+
// Uniquely identifies this index build across replica set members.
const UUID buildUUID;