Skip to content
Permalink
Browse files
CASSANDRA-16109: if user has not set nodeCount, use the node id topol…
…ogy size (#20)
  • Loading branch information
krummas committed Sep 22, 2020
1 parent a726134 commit b0054ea44f1311d938aaa22f775f4930a8a1419c
Showing 1 changed file with 4 additions and 1 deletion.
@@ -292,7 +292,10 @@ else if (nodeIdTopology != null)
}
else if (nodeIdTopology.size() > nodeCount)
{
System.out.printf("nodeIdTopology configured for %d nodes while nodeCount is %d%n", nodeIdTopology.size(), nodeCount);
if (nodeCount == 0)
nodeCount = nodeIdTopology.size();
else
System.out.printf("nodeIdTopology configured for %d nodes while nodeCount is %d%n", nodeIdTopology.size(), nodeCount);
}
}
else

0 comments on commit b0054ea

Please sign in to comment.