mirror of https://github.com/apache/cassandra
Merge branch 'cassandra-1.2' into trunk
Conflicts: src/java/org/apache/cassandra/service/StorageService.java
This commit is contained in:
commit
eec01e9fe8
|
|
@ -878,7 +878,7 @@ public class StorageService extends NotificationBroadcasterSupport implements IE
|
||||||
{
|
{
|
||||||
isBootstrapMode = true;
|
isBootstrapMode = true;
|
||||||
SystemKeyspace.updateTokens(tokens); // DON'T use setToken, that makes us part of the ring locally which is incorrect until we are done bootstrapping
|
SystemKeyspace.updateTokens(tokens); // DON'T use setToken, that makes us part of the ring locally which is incorrect until we are done bootstrapping
|
||||||
if (DatabaseDescriptor.isReplacing())
|
if (!DatabaseDescriptor.isReplacing())
|
||||||
{
|
{
|
||||||
// if not an existing token then bootstrap
|
// if not an existing token then bootstrap
|
||||||
// order is important here, the gossiper can fire in between adding these two states. It's ok to send TOKENS without STATUS, but *not* vice versa.
|
// order is important here, the gossiper can fire in between adding these two states. It's ok to send TOKENS without STATUS, but *not* vice versa.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue