Skip to content

Commit 9bb0231

Browse files
benetyevergreen
authored andcommitted
SERVER-44784 disable two phase index builds when majority reads are off
1 parent 91fc73a commit 9bb0231

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/mongo/db/storage/storage_engine_impl.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,6 +866,12 @@ bool StorageEngineImpl::supportsTwoPhaseIndexBuild() const {
866866
return false;
867867
}
868868

869+
// TODO(SERVER-39452): remove this condition when rollback via refetch supports two phase index
870+
// builds.
871+
if (!supportsReadConcernMajority()) {
872+
return false;
873+
}
874+
869875
return true;
870876
}
871877

0 commit comments

Comments
 (0)