summaryrefslogtreecommitdiff
path: root/src/mongo/db/op_observer_registry.h
diff options
context:
space:
mode:
authorCheahuychou Mao <cheahuychou.mao@mongodb.com>2019-12-11 21:46:37 +0000
committerevergreen <evergreen@mongodb.com>2019-12-11 21:46:37 +0000
commit6dfa4748f017315300a32982b63fe71e8a68d42d (patch)
treebb089ddc8ccd769339bb1dfc2263f47020db86fe /src/mongo/db/op_observer_registry.h
parent57acc8b666b8c9dfc34eaf03c226ab26ac225781 (diff)
downloadmongo-6dfa4748f017315300a32982b63fe71e8a68d42d.tar.gz
SERVER-44911 Make index operations abort concurrent outgoing migrations
Diffstat (limited to 'src/mongo/db/op_observer_registry.h')
-rw-r--r--src/mongo/db/op_observer_registry.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/op_observer_registry.h b/src/mongo/db/op_observer_registry.h
index 12370e0b561..8da173e1c91 100644
--- a/src/mongo/db/op_observer_registry.h
+++ b/src/mongo/db/op_observer_registry.h
@@ -80,6 +80,14 @@ public:
}
}
+ virtual void onStartIndexBuildSinglePhase(OperationContext* opCtx,
+ const NamespaceString& nss) override {
+ ReservedTimes times{opCtx};
+ for (auto& o : _observers) {
+ o->onStartIndexBuildSinglePhase(opCtx, nss);
+ }
+ }
+
virtual void onCommitIndexBuild(OperationContext* opCtx,
const NamespaceString& nss,
CollectionUUID collUUID,