diff options
author | Benety Goh <benety@mongodb.com> | 2022-05-16 09:42:28 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-05-16 14:30:56 +0000 |
commit | 04402176f1ae8471396905b419ebb3d1b7d1c7a9 (patch) | |
tree | 8de153a598a9a1b8372e70ad0f4939ad88ffa820 /src/mongo/db/index_builds_coordinator.h | |
parent | 59bec6ec49ecf623c70ef5fe78e3e9ad969bc160 (diff) | |
download | mongo-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.h | 7 |
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. |