From cbb7dd2a18f514f40a97c445fb909ea390c549b7 Mon Sep 17 00:00:00 2001 From: yxg <1876831041@qq.com> Date: Tue, 16 May 2023 12:54:12 +0800 Subject: [PATCH] break out of unnecessary loops --- .../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 c8f389f7f4..c534e45df6 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 @@ protected Iterator queryEdgesFromBackend(Query query) { if (edge.expired()) { this.edgesCache.invalidate(cacheKey); value = null; + break; } } }