diff options
author | Josef Ahmad <josef.ahmad@mongodb.com> | 2022-09-06 07:55:13 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-09-06 15:09:34 +0000 |
commit | a6ba6978169a06a3929026daf941ba43040c7b6d (patch) | |
tree | 95f234e4be150d669ad34168b40ab8d0d95470ce /src/mongo/db/op_observer/op_observer_registry.h | |
parent | 980b6ffc3d242afc1fc6ad07526014c218c6d3f1 (diff) | |
download | mongo-a6ba6978169a06a3929026daf941ba43040c7b6d.tar.gz |
SERVER-67894 Add _shardsvrInsertGlobalIndexKey command
Diffstat (limited to 'src/mongo/db/op_observer/op_observer_registry.h')
-rw-r--r-- | src/mongo/db/op_observer/op_observer_registry.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mongo/db/op_observer/op_observer_registry.h b/src/mongo/db/op_observer/op_observer_registry.h index 999defbefc0..8686140e373 100644 --- a/src/mongo/db/op_observer/op_observer_registry.h +++ b/src/mongo/db/op_observer/op_observer_registry.h @@ -139,6 +139,17 @@ public: o->onInserts(opCtx, coll, begin, end, fromMigrate); } + void onInsertGlobalIndexKey(OperationContext* opCtx, + const NamespaceString& globalIndexNss, + const UUID& globalIndexUuid, + const BSONObj& key, + const BSONObj& docKey) override { + + ReservedTimes times{opCtx}; + for (auto& o : _observers) + o->onInsertGlobalIndexKey(opCtx, globalIndexNss, globalIndexUuid, key, docKey); + } + void onUpdate(OperationContext* const opCtx, const OplogUpdateEntryArgs& args) override { ReservedTimes times{opCtx}; for (auto& o : _observers) |