git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GitHub] activemq-artemis pull request #2156: ARTEMIS-1951 allow queue's user to be u...


Github user michaelandrepearce commented on a diff in the pull request:

    https://github.com/apache/activemq-artemis/pull/2156#discussion_r197792644
  
    --- Diff: artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/PostOfficeImpl.java ---
    @@ -511,6 +512,10 @@ public QueueBinding updateQueue(SimpleString name,
                 changed = true;
                 queue.setExclusive(exclusive);
              }
    +         if ((user != null && !user.equals(queue.getUser()) || (user == null && queue.getUser() != null))) {
    +            changed = true;
    +            queue.setUser(SimpleString.toSimpleString(user));
    --- End diff --
    
    @jbertram ive sent a PR to address this https://github.com/apache/activemq-artemis/pull/2161


---