summaryrefslogtreecommitdiff
path: root/src/mongo/db/index_builds_coordinator.h
diff options
context:
space:
mode:
authorDianna Hohensee <dianna.hohensee@10gen.com>2019-04-01 11:22:09 -0400
committerDianna Hohensee <dianna.hohensee@10gen.com>2019-04-02 10:27:04 -0400
commited7dab9f2e1444e0be8b87c562483377164df58e (patch)
treeed20874968cbf51ff3f3fa5e515f8841b69f0ed2 /src/mongo/db/index_builds_coordinator.h
parentc845caf2d6fa909e372e2e178fca7d0640924fe1 (diff)
downloadmongo-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.h8
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.
*