You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/05/24 01:37:14 UTC

[GitHub] [pulsar] Technoboy- commented on a diff in pull request #15722: [fix][client] Fix changeToReadyState of HandlerState

Technoboy- commented on code in PR #15722:
URL: https://github.com/apache/pulsar/pull/15722#discussion_r879983352


##########
pulsar-client/src/main/java/org/apache/pulsar/client/impl/HandlerState.java:
##########
@@ -53,7 +53,8 @@ public HandlerState(PulsarClientImpl client, String topic) {
     protected boolean changeToReadyState() {
         return (STATE_UPDATER.compareAndSet(this, State.Uninitialized, State.Ready)

Review Comment:
   if (STATE_UPDATER.get(this) == State.Ready) {
   return true;
   }
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org