diff options
author | Dianna Hohensee <dianna.hohensee@10gen.com> | 2018-12-20 11:06:04 -0500 |
---|---|---|
committer | Dianna Hohensee <dianna.hohensee@10gen.com> | 2019-01-22 21:44:13 -0500 |
commit | b89d1cb056f82af22a5bef211bd2680f3784e7c2 (patch) | |
tree | 52f4b91a50c351e250f9d61b93e635c6ebabd508 /src/mongo/db/op_observer.h | |
parent | aa0d93a714f84bf6a29b42390cc51c79963cf725 (diff) | |
download | mongo-b89d1cb056f82af22a5bef211bd2680f3784e7c2.tar.gz |
SERVER-39066 Add OpObservers and oplog handling for startIndexBuild and commitIndexBuild
Diffstat (limited to 'src/mongo/db/op_observer.h')
-rw-r--r-- | src/mongo/db/op_observer.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/mongo/db/op_observer.h b/src/mongo/db/op_observer.h index 91c66abb603..ef1fb9903e3 100644 --- a/src/mongo/db/op_observer.h +++ b/src/mongo/db/op_observer.h @@ -90,11 +90,32 @@ public: }; virtual ~OpObserver() = default; + virtual void onCreateIndex(OperationContext* opCtx, const NamespaceString& nss, CollectionUUID uuid, BSONObj indexDoc, bool fromMigrate) = 0; + + virtual void onStartIndexBuild(OperationContext* opCtx, + const NamespaceString& nss, + CollectionUUID collUUID, + const UUID& indexBuildUUID, + const std::vector<BSONObj>& indexes, + bool fromMigrate) = 0; + + virtual void onCommitIndexBuild(OperationContext* opCtx, + const NamespaceString& nss, + CollectionUUID collUUID, + const UUID& indexBuildUUID, + const std::vector<BSONObj>& indexes, + bool fromMigrate) = 0; + + virtual void onAbortIndexBuild(OperationContext* opCtx, + CollectionUUID collUUID, + const BSONObj& indexInfo, + bool fromMigrate) = 0; + virtual void onInserts(OperationContext* opCtx, const NamespaceString& nss, OptionalCollectionUUID uuid, |