summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/migration_destination_manager.cpp
diff options
context:
space:
mode:
authorGregory Wlodarek <gregory.wlodarek@mongodb.com>2020-04-09 20:27:15 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-04-20 22:53:33 +0000
commitb957b68205fbf672867cf68e30c0744ac5abfb9f (patch)
tree3cfc9b7cb90f2082b905f87701ab92d87d5297cc /src/mongo/db/s/migration_destination_manager.cpp
parent41bec612516c3258984deaa022453d6721bcd542 (diff)
downloadmongo-b957b68205fbf672867cf68e30c0744ac5abfb9f.tar.gz
SERVER-46659 Initial sync will startup two phase index builds during the collection cloning phase to prevent a scenario where the commit quorum cannot be satisfied due to the primary node needing the initial syncing nodes vote
Diffstat (limited to 'src/mongo/db/s/migration_destination_manager.cpp')
-rw-r--r--src/mongo/db/s/migration_destination_manager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/s/migration_destination_manager.cpp b/src/mongo/db/s/migration_destination_manager.cpp
index 9dfc07a5bd3..4b3a57f2e54 100644
--- a/src/mongo/db/s/migration_destination_manager.cpp
+++ b/src/mongo/db/s/migration_destination_manager.cpp
@@ -651,7 +651,9 @@ void MigrationDestinationManager::cloneCollectionIndexesAndOptions(
// Determine which indexes exist on the local collection that don't exist on the donor's
// collection.
DBDirectClient client(opCtx);
- auto indexes = client.getIndexSpecs(nss);
+ const bool includeBuildUUIDs = false;
+ const int options = 0;
+ auto indexes = client.getIndexSpecs(nss, includeBuildUUIDs, options);
for (auto&& recipientIndex : indexes) {
bool dropIndex = true;
for (auto&& donorIndex : collectionOptionsAndIndexes.indexSpecs) {