summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/shard_server_op_observer.cpp
diff options
context:
space:
mode:
authorGregory Wlodarek <gregory.wlodarek@mongodb.com>2021-10-01 17:35:46 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-10-15 18:12:27 +0000
commit541a6b6cba82590f2d8fddacc2c7327865f50bbb (patch)
treef68cc483d852864a99a65692fdadbbf3eeda54ac /src/mongo/db/s/shard_server_op_observer.cpp
parentc5df0a3674c75516f4a2ccea02760ab3c9de19af (diff)
downloadmongo-541a6b6cba82590f2d8fddacc2c7327865f50bbb.tar.gz
SERVER-60343 Single-phase index builds perform timestamped catalog writes on abort
(cherry picked from commit e24c4546b90a5af883dc111c0a60c6424ac395d2)
Diffstat (limited to 'src/mongo/db/s/shard_server_op_observer.cpp')
-rw-r--r--src/mongo/db/s/shard_server_op_observer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/s/shard_server_op_observer.cpp b/src/mongo/db/s/shard_server_op_observer.cpp
index 0c84dabb36a..0998328bc35 100644
--- a/src/mongo/db/s/shard_server_op_observer.cpp
+++ b/src/mongo/db/s/shard_server_op_observer.cpp
@@ -605,6 +605,11 @@ void ShardServerOpObserver::onStartIndexBuildSinglePhase(OperationContext* opCtx
abortOngoingMigrationIfNeeded(opCtx, nss);
}
+void ShardServerOpObserver::onAbortIndexBuildSinglePhase(OperationContext* opCtx,
+ const NamespaceString& nss) {
+ abortOngoingMigrationIfNeeded(opCtx, nss);
+}
+
void ShardServerOpObserver::onDropIndex(OperationContext* opCtx,
const NamespaceString& nss,
OptionalCollectionUUID uuid,