summaryrefslogtreecommitdiff
path: root/src/mongo/db/op_observer/op_observer_registry.h
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2023-03-28 05:06:26 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-03-28 09:46:19 +0000
commit8754d07ae5dad44417fd232595605aa5fabbc99a (patch)
tree3b798135da17dd259dcacc3648e9b73f10d7b5ca /src/mongo/db/op_observer/op_observer_registry.h
parentc5519fd438f2880e7a80fe60cdb3ab3e5dc0712a (diff)
downloadmongo-8754d07ae5dad44417fd232595605aa5fabbc99a.tar.gz
SERVER-74589 OpObserver::onInserts() accepts fromMigrate bool array
Diffstat (limited to 'src/mongo/db/op_observer/op_observer_registry.h')
-rw-r--r--src/mongo/db/op_observer/op_observer_registry.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/op_observer/op_observer_registry.h b/src/mongo/db/op_observer/op_observer_registry.h
index ba785c6c8d1..afdedf8b582 100644
--- a/src/mongo/db/op_observer/op_observer_registry.h
+++ b/src/mongo/db/op_observer/op_observer_registry.h
@@ -151,10 +151,11 @@ public:
const CollectionPtr& coll,
std::vector<InsertStatement>::const_iterator begin,
std::vector<InsertStatement>::const_iterator end,
- bool fromMigrate) override {
+ std::vector<bool> fromMigrate,
+ bool defaultFromMigrate) override {
ReservedTimes times{opCtx};
for (auto& o : _observers)
- o->onInserts(opCtx, coll, begin, end, fromMigrate);
+ o->onInserts(opCtx, coll, begin, end, fromMigrate, defaultFromMigrate);
}
void onInsertGlobalIndexKey(OperationContext* opCtx,