Skip to content

Commit a21c086

Browse files
pferraroSanne
authored andcommitted
HHH-11254 Timestamps cache fails validation if eviction strategy = MANUAL
1 parent c308bcb commit a21c086

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hibernate-infinispan/src/main/java/org/hibernate/cache/infinispan/InfinispanRegionFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public enum DataType {
132132
if ( c.clustering().cacheMode().isInvalidation() ) {
133133
throw log.timestampsMustNotUseInvalidation();
134134
}
135-
if (c.eviction().strategy() != EvictionStrategy.NONE) {
135+
if (c.eviction().strategy().isEnabled()) {
136136
throw log.timestampsMustNotUseEviction();
137137
}
138138
}),

0 commit comments

Comments
 (0)