commit | f23c648937c8c4601a9f721d688eabfec7a8cfb3 | [log] [tgz] |
---|---|---|
author | starry-sky_down-to-earth <34939118+GYXkeep@users.noreply.github.com> | Wed May 17 00:23:45 2023 +0800 |
committer | GitHub <noreply@github.com> | Wed May 17 00:23:45 2023 +0800 |
tree | e6358aa155accaefe5d4ad9ee4cf560b688a81b8 | |
parent | 0f2faf48dc0799b22b811af323e6eec25dff881a [diff] |
refact(core): early stop unnecessary loops in edge cache (#2211)
diff --git a/hugegraph-core/src/main/java/org/apache/hugegraph/backend/cache/CachedGraphTransaction.java b/hugegraph-core/src/main/java/org/apache/hugegraph/backend/cache/CachedGraphTransaction.java index c8f389f..c534e45 100644 --- a/hugegraph-core/src/main/java/org/apache/hugegraph/backend/cache/CachedGraphTransaction.java +++ b/hugegraph-core/src/main/java/org/apache/hugegraph/backend/cache/CachedGraphTransaction.java
@@ -326,6 +326,7 @@ if (edge.expired()) { this.edgesCache.invalidate(cacheKey); value = null; + break; } } }