Skip to content

Commit fff7e15

Browse files
author
Bulat Shakirzyanov
committed
don't fetch schema when automatic sync disabled
1 parent 2799e4f commit fff7e15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cassandra/cluster/control_connection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ def connect_to_first_available(plan, errors = nil)
677677
register_async
678678
end
679679
f = f.flat_map { refresh_hosts_async_maybe_retry }
680-
f = f.flat_map { refresh_schema_async_maybe_retry }
680+
f = f.flat_map { refresh_schema_async_maybe_retry } if @connection_options.synchronize_schema?
681681
f = f.fallback do |error|
682682
@logger.debug("Connection to #{host.ip} failed (#{error.class.name}: #{error.message})")
683683

0 commit comments

Comments
 (0)