This is an automated email from the ASF dual-hosted git repository. av pushed a commit to branch ignite-20177 in repository https://gitbox.apache.org/repos/asf/ignite.git
commit fd560bf3efbd19bb03a8083708d5d5ebbc909e79 Author: Anton Vinogradov <a...@apache.org> AuthorDate: Mon Aug 7 22:48:04 2023 +0300 WIP --- .../internal/processors/cache/distributed/dht/GridDhtLockFuture.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtLockFuture.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtLockFuture.java index a3c15d8bae2..ca64565bf4b 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtLockFuture.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridDhtLockFuture.java @@ -126,11 +126,9 @@ public final class GridDhtLockFuture extends GridCacheCompoundIdentityFuture<Boo /** * Keys locked so far. - * * Thread created this object iterates over entries and tries to lock each of them. * If it finds some entry already locked by another thread it registers callback which will be executed * by the thread owning the lock. - * * Thus access to this collection must be synchronized except cases * when this object is yet local to the thread created it. */ @@ -965,7 +963,7 @@ public final class GridDhtLockFuture extends GridCacheCompoundIdentityFuture<Boo for (ListIterator<GridDhtCacheEntry> it = dhtMapping.listIterator(); it.hasNext(); ) { GridDhtCacheEntry e = it.next(); - boolean needVal = false; + boolean needVal; try { // Must unswap entry so that isNewLocked returns correct value.