summaryrefslogtreecommitdiff
path: root/src/mongo/db/index_builds_coordinator.h
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2022-05-16 09:42:28 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-05-16 14:30:56 +0000
commit04402176f1ae8471396905b419ebb3d1b7d1c7a9 (patch)
tree8de153a598a9a1b8372e70ad0f4939ad88ffa820 /src/mongo/db/index_builds_coordinator.h
parent59bec6ec49ecf623c70ef5fe78e3e9ad969bc160 (diff)
downloadmongo-04402176f1ae8471396905b419ebb3d1b7d1c7a9.tar.gz
SERVER-60791 add appendBuildInfo() method to IndexBuildsCoordinator and index build class hierarchy for listIndexes includeIncludeBuildInfo
Contains no functional or formatting changes to listIndexes.
Diffstat (limited to 'src/mongo/db/index_builds_coordinator.h')
-rw-r--r--src/mongo/db/index_builds_coordinator.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/index_builds_coordinator.h b/src/mongo/db/index_builds_coordinator.h
index 425c511a1c2..f00572060fd 100644
--- a/src/mongo/db/index_builds_coordinator.h
+++ b/src/mongo/db/index_builds_coordinator.h
@@ -411,6 +411,13 @@ public:
*/
void waitUntilAnIndexBuildFinishes(OperationContext* opCtx);
+
+ /**
+ * Appends the current state information of the index build to the builder.
+ * Does nothing if build UUID does not refer to an active index build.
+ */
+ void appendBuildInfo(const UUID& buildUUID, BSONObjBuilder* builder) const;
+
//
// Helper functions for creating indexes that do not have to be managed by the
// IndexBuildsCoordinator.