Skip to content

Commit e3bfb47

Browse files
committed
Don't use public API to access metadata from ArrayBackedResultSet.
This avoids triggering Cluster.init(), which acquires a lock.
1 parent 721aeca commit e3bfb47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static ArrayBackedResultSet fromMessage(Responses.Result msg, SessionManager ses
6868
}
6969

7070
Token.Factory tokenFactory = (session == null) ? null
71-
: session.getCluster().getMetadata().tokenFactory();
71+
: session.getCluster().manager.metadata.tokenFactory();
7272

7373
// info can be null only for internal calls, but we don't page those. We assert
7474
// this explicitly because MultiPage implementation don't support info == null.

0 commit comments

Comments
 (0)