Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
Bug 1234912 - Do not authenticate against new storage node when
Browse files Browse the repository at this point in the history
replication_factor of system_auth keyspace is wrong

Fix "healthy" replication factor definition

(cherry picked from commit e1fa9ed)
Signed-off-by: Libor Zoubek <lzoubek@redhat.com>
  • Loading branch information
Libor Zoubek committed Oct 8, 2015
1 parent 68503b2 commit fa7b1a1
Showing 1 changed file with 5 additions and 4 deletions.
Expand Up @@ -215,12 +215,13 @@ static int getHealthyReplicationFactor(String keyspace, int clusterSize) {
if ("system_auth".equals(keyspace)) {
return clusterSize;
}
if (clusterSize == 2) {
return 2;
}
if (clusterSize > 2) {
if (clusterSize > 3) {
return 3;
}
if (clusterSize >= 2) {
return 2;
}

return 1;
}

Expand Down

0 comments on commit fa7b1a1

Please sign in to comment.