Skip to content

Commit

Permalink
Merge pull request #17389 from pferraro/WFLY-18727
Browse files Browse the repository at this point in the history
WFLY-18727 ATTRIBUTE granularity distributed sessions should always replicate on setAttribute(...)
  • Loading branch information
kabir authored Nov 10, 2023
2 parents a590f14 + a5f6d75 commit 029d697
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,9 @@ public Object setAttribute(String name, Object value) {

Object result = this.attributes.put(name, value);

if (value != result) {
synchronized (this.updates) {
this.updates.put(name, value);
}
// Always trigger attribute update, even if called with an existing reference
synchronized (this.updates) {
this.updates.put(name, value);
}

return result;
Expand Down

0 comments on commit 029d697

Please sign in to comment.