0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

SERVER-44784 disable two phase index builds when majority reads are off

This commit is contained in:
Benety Goh 2019-11-25 15:47:48 +00:00 committed by evergreen
parent 91fc73a60e
commit 9bb0231ccb

View File

@ -866,6 +866,12 @@ bool StorageEngineImpl::supportsTwoPhaseIndexBuild() const {
return false;
}
// TODO(SERVER-39452): remove this condition when rollback via refetch supports two phase index
// builds.
if (!supportsReadConcernMajority()) {
return false;
}
return true;
}