diff options
Diffstat (limited to 'src/mongo/db/commands/create_indexes.cpp')
-rw-r--r-- | src/mongo/db/commands/create_indexes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/create_indexes.cpp b/src/mongo/db/commands/create_indexes.cpp index e4a66da2d4b..0f3b83667cd 100644 --- a/src/mongo/db/commands/create_indexes.cpp +++ b/src/mongo/db/commands/create_indexes.cpp @@ -643,7 +643,7 @@ bool runCreateIndexesWithCoordinator(OperationContext* opCtx, } } throw; - } catch (const ExceptionForCat<ErrorCategory::NotMasterError>& ex) { + } catch (const ExceptionForCat<ErrorCategory::NotPrimaryError>& ex) { LOGV2(20444, "Index build: received interrupt signal due to change in replication state", "buildUUID"_attr = buildUUID, |