diff --git a/driver-core/src/main/java/com/datastax/driver/core/Connection.java b/driver-core/src/main/java/com/datastax/driver/core/Connection.java index 9b54c86c62e..5fee90f504a 100644 --- a/driver-core/src/main/java/com/datastax/driver/core/Connection.java +++ b/driver-core/src/main/java/com/datastax/driver/core/Connection.java @@ -1047,7 +1047,7 @@ boolean setOwner(Owner owner) { } public int shardId() { - return shardId == null || getHost().getShardingInfo() == null ? 0 : shardId; + return shardId == null ? 0 : shardId; } /**