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:
parent
91fc73a60e
commit
9bb0231ccb
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user