This is an automated email from the ASF dual-hosted git repository.
jin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph.git
The following commit(s) were added to refs/heads/master by this push:
new f23c64893 refact(core): early stop unnecessary loops in edge cache
(#2211)
f23c64893 is described below
commit f23c648937c8c4601a9f721d688eabfec7a8cfb3
Author: starry-sky_down-to-earth <[email protected]>
AuthorDate: Wed May 17 00:23:45 2023 +0800
refact(core): early stop unnecessary loops in edge cache (#2211)
---
.../java/org/apache/hugegraph/backend/cache/CachedGraphTransaction.java | 1 +
1 file changed, 1 insertion(+)
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 c8f389f7f..c534e45df 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 @@ public final class CachedGraphTransaction extends
GraphTransaction {
if (edge.expired()) {
this.edgesCache.invalidate(cacheKey);
value = null;
+ break;
}
}
}