diff options
author | Dianna Hohensee <dianna.hohensee@10gen.com> | 2019-04-01 11:22:09 -0400 |
---|---|---|
committer | Dianna Hohensee <dianna.hohensee@10gen.com> | 2019-04-02 10:27:04 -0400 |
commit | ed7dab9f2e1444e0be8b87c562483377164df58e (patch) | |
tree | ed20874968cbf51ff3f3fa5e515f8841b69f0ed2 /src/mongo/db/index_builds_coordinator.h | |
parent | c845caf2d6fa909e372e2e178fca7d0640924fe1 (diff) | |
download | mongo-ed7dab9f2e1444e0be8b87c562483377164df58e.tar.gz |
SERVER-39974 Move setting index build curOp information from the MultiIndexBlock to the IndexBuildsCoordinator
Diffstat (limited to 'src/mongo/db/index_builds_coordinator.h')
-rw-r--r-- | src/mongo/db/index_builds_coordinator.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mongo/db/index_builds_coordinator.h b/src/mongo/db/index_builds_coordinator.h index 03dc441d3d7..f7f9eb67e23 100644 --- a/src/mongo/db/index_builds_coordinator.h +++ b/src/mongo/db/index_builds_coordinator.h @@ -323,7 +323,13 @@ private: void _allowIndexBuildsOnDatabase(StringData dbName); void _allowIndexBuildsOnCollection(const UUID& collectionUUID); -private: + /** + * Updates CurOp's 'opDescription' field with the current state of this index build. + */ + void _updateCurOpOpDescription(OperationContext* opCtx, + const NamespaceString& nss, + const std::vector<BSONObj>& indexSpecs) const; + /** * Registers an index build so that the rest of the system can discover it. * |