Avoid KeyError in schema refresh when dropping keyspaces
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
2.0.2
|
||||
=====
|
||||
|
||||
Bug Fixes
|
||||
---------
|
||||
* Add six to requirements.txt
|
||||
* Avoid KeyError during schema refresh when a keyspace is dropped
|
||||
and TokenAwarePolicy is not in use
|
||||
|
||||
2.0.1
|
||||
=====
|
||||
May 28, 2014
|
||||
|
@@ -970,7 +970,7 @@ class TokenMap(object):
|
||||
return None
|
||||
|
||||
def remove_keyspace(self, keyspace):
|
||||
del self.tokens_to_hosts_by_ks[keyspace]
|
||||
self.tokens_to_hosts_by_ks.pop(keyspace, None)
|
||||
|
||||
def get_replicas(self, keyspace, token):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user