Skip to content

Commit 5cd6a94

Browse files
author
Alexandre Dutra
committed
Revert "Avoid full cluster scans in Connection.checkClusterName (#1195)"
This reverts commit 60e6696.
1 parent 5fe593a commit 5cd6a94

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

driver-core/src/main/java/com/datastax/driver/core/Connection.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -382,9 +382,7 @@ private ListenableFuture<Void> checkClusterName(
382382

383383
DefaultResultSetFuture clusterNameFuture =
384384
new DefaultResultSetFuture(
385-
null,
386-
protocolVersion,
387-
new Requests.Query("select cluster_name from system.local where key = 'local'"));
385+
null, protocolVersion, new Requests.Query("select cluster_name from system.local"));
388386
try {
389387
write(clusterNameFuture);
390388
return GuavaCompatibility.INSTANCE.transformAsync(

0 commit comments

Comments
 (0)