Skip to content

Commit

Permalink
Revert "Avoid full cluster scans in Connection.checkClusterName (#1195)"
Browse files Browse the repository at this point in the history
This reverts commit 60e6696.
  • Loading branch information
Alexandre Dutra committed Feb 26, 2019
1 parent 5fe593a commit 5cd6a94
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -382,9 +382,7 @@ private ListenableFuture<Void> checkClusterName(

DefaultResultSetFuture clusterNameFuture =
new DefaultResultSetFuture(
null,
protocolVersion,
new Requests.Query("select cluster_name from system.local where key = 'local'"));
null, protocolVersion, new Requests.Query("select cluster_name from system.local"));
try {
write(clusterNameFuture);
return GuavaCompatibility.INSTANCE.transformAsync(
Expand Down

0 comments on commit 5cd6a94

Please sign in to comment.