fix: we cannot kill all of the remote tlogs, because we still need their data to copy to the next generation in the same data center
This commit is contained in:
parent
7d392689fe
commit
48fbc407fd
|
@ -1092,13 +1092,19 @@ public:
|
|||
bool tooManyDead = false;
|
||||
bool notEnoughLeft = false;
|
||||
bool primaryTLogsDead = tLogWriteAntiQuorum ? !validateAllCombinations(badCombo, primaryProcessesDead, tLogPolicy, primaryLocalitiesLeft, tLogWriteAntiQuorum, false) : primaryProcessesDead.validate(tLogPolicy);
|
||||
if(remoteTLogPolicy && !primaryTLogsDead) {
|
||||
primaryTLogsDead = primaryProcessesDead.validate(remoteTLogPolicy);
|
||||
}
|
||||
|
||||
if(!primaryDcId.present()) {
|
||||
tooManyDead = primaryTLogsDead || primaryProcessesDead.validate(storagePolicy);
|
||||
notEnoughLeft = !primaryProcessesLeft.validate(tLogPolicy) || !primaryProcessesLeft.validate(storagePolicy);
|
||||
} else {
|
||||
bool remoteTLogsDead = tLogWriteAntiQuorum ? !validateAllCombinations(badCombo, remoteProcessesDead, tLogPolicy, remoteLocalitiesLeft, tLogWriteAntiQuorum, false) : remoteProcessesDead.validate(tLogPolicy);
|
||||
|
||||
if(remoteTLogPolicy && !remoteTLogsDead) {
|
||||
remoteTLogsDead = remoteProcessesDead.validate(remoteTLogPolicy);
|
||||
}
|
||||
|
||||
if(!hasSatelliteReplication) {
|
||||
notEnoughLeft = ( !primaryProcessesLeft.validate(tLogPolicy) || !primaryProcessesLeft.validate(storagePolicy) ) && ( !remoteProcessesLeft.validate(tLogPolicy) || !remoteProcessesLeft.validate(storagePolicy) );
|
||||
if(hasRemoteReplication) {
|
||||
|
|
Loading…
Reference in New Issue