summaryrefslogtreecommitdiff
path: root/src/mongo/db/free_mon
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/free_mon
parentc5519fd438f2880e7a80fe60cdb3ab3e5dc0712a (diff)
downloadmongo-8754d07ae5dad44417fd232595605aa5fabbc99a.tar.gz
SERVER-74589 OpObserver::onInserts() accepts fromMigrate bool array
Diffstat (limited to 'src/mongo/db/free_mon')
-rw-r--r--src/mongo/db/free_mon/free_mon_op_observer.cpp3
-rw-r--r--src/mongo/db/free_mon/free_mon_op_observer.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/free_mon/free_mon_op_observer.cpp b/src/mongo/db/free_mon/free_mon_op_observer.cpp
index 5426c3b20ef..f8126abcef3 100644
--- a/src/mongo/db/free_mon/free_mon_op_observer.cpp
+++ b/src/mongo/db/free_mon/free_mon_op_observer.cpp
@@ -75,7 +75,8 @@ void FreeMonOpObserver::onInserts(OperationContext* opCtx,
const CollectionPtr& coll,
std::vector<InsertStatement>::const_iterator begin,
std::vector<InsertStatement>::const_iterator end,
- bool fromMigrate) {
+ std::vector<bool> fromMigrate,
+ bool defaultFromMigrate) {
if (coll->ns() != NamespaceString::kServerConfigurationNamespace) {
return;
}
diff --git a/src/mongo/db/free_mon/free_mon_op_observer.h b/src/mongo/db/free_mon/free_mon_op_observer.h
index 50a2bf8eb0a..f734cb77696 100644
--- a/src/mongo/db/free_mon/free_mon_op_observer.h
+++ b/src/mongo/db/free_mon/free_mon_op_observer.h
@@ -95,7 +95,8 @@ public:
const CollectionPtr& coll,
std::vector<InsertStatement>::const_iterator begin,
std::vector<InsertStatement>::const_iterator end,
- bool fromMigrate) final;
+ std::vector<bool> fromMigrate,
+ bool defaultFromMigrate) final;
void onInsertGlobalIndexKey(OperationContext* opCtx,
const NamespaceString& globalIndexNss,