forked from apache/cassandra-java-driver
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
usesTablets
property to KeyspaceMetadata
Adds the field to `KeyspaceMetadata` that informs if the keyspace has tablets enabled. It is initialized with value `false` and updated to `true` only if the keyspace is discovered in `system_schema.scylla_keyspaces` and its entry has non-null value in `initial_tablets` column. The update happens on schema refresh. Updates `Metadata#getReplicas` to use this keyspace metadata information to decide whether to look for replicas in the token map or tablet map. Fixes #380.
- Loading branch information
Showing
3 changed files
with
157 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters