support PropertyFileSnitch in bulk loader

patch by Ji Cheng; reviewed by jbellis for CASSANDRA-4145
This commit is contained in:
Jonathan Ellis 2012-04-13 10:31:01 -05:00
parent 142e8c1a29
commit c738813098
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,5 @@
1.0.10
* support PropertyFileSnitch in bulk loader (CASSANDRA-4145)
* add auto_snapshot option allowing disabling snapshot before drop/truncate
(CASSANDRA-3710)
* allow short snitch names (CASSANDRA-4130)

View File

@ -167,6 +167,7 @@ public class PropertyFileSnitch extends AbstractNetworkTopologySnitch
logger.debug("loaded network topology {}", FBUtilities.toString(reloadedMap));
endpointMap = reloadedMap;
StorageService.instance.getTokenMetadata().invalidateCaches();
if (StorageService.instance != null) // null check tolerates circular dependency; see CASSANDRA-4145
StorageService.instance.getTokenMetadata().invalidateCaches();
}
}