[
https://issues.apache.org/jira/browse/CASSGO-23?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17894311#comment-17894311
]
João Reis commented on CASSGO-23:
---------------------------------
To mitigate the impact of these changes we can make the "mutable" functions
return a copy of Session instead.
> Make Session immutable
> -----------------------
>
> Key: CASSGO-23
> URL: https://issues.apache.org/jira/browse/CASSGO-23
> Project: Apache Cassandra Go driver
> Issue Type: Improvement
> Components: Core
> Reporter: João Reis
> Priority: Normal
>
> https://github.com/apache/cassandra-gocql-driver/issues/357
> {quote}Currently Session has some fields which can be changed, such as Cons,
> Tracing, and some others. This requires there to be a RWMutex which needs to
> be acquired when executing a query to copy the options.
> I propose we make Session immutable and remove this lock.{quote}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]