Skip to content

Commit 8f4fd4e

Browse files
committed
Support not-versioned minimalPut in CacheLock
1 parent c485826 commit 8f4fd4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NHibernate/Cache/CacheLock.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public bool IsPuttable(long txTimestamp, object newVersion, IComparer comparator
8787
}
8888

8989
return Version == null
90-
? UnlockTimestamp < txTimestamp
90+
? !minimalPut && UnlockTimestamp < txTimestamp
9191
: comparator.Compare(Version, newVersion) < (minimalPut ? 0 : 1);
9292
//by requiring <, we rely on lock timeout in the case of an unsuccessful update!
9393
}

0 commit comments

Comments
 (0)