Skip to content

Commit 661ecaf

Browse files
s-londonoeleftherias
authored andcommitted
Store Principal Name Index in the Hazelcast Session delta
Issue gh-1801
1 parent 378ba6d commit 661ecaf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spring-session-hazelcast/hazelcast4/src/main/java/org/springframework/session/hazelcast/Hazelcast4IndexedSessionRepository.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,7 @@ public void setAttribute(String attributeName, Object attributeValue) {
441441
.resolveIndexesFor(this);
442442
String principal = (attributeValue != null) ? indexes.get(PRINCIPAL_NAME_INDEX_NAME) : null;
443443
this.delegate.setAttribute(PRINCIPAL_NAME_INDEX_NAME, principal);
444+
this.delta.put(PRINCIPAL_NAME_INDEX_NAME, principal);
444445
}
445446
flushImmediateIfNecessary();
446447
}

0 commit comments

Comments
 (0)