VGalaxies commented on code in PR #2620:
URL: 
https://github.com/apache/incubator-hugegraph/pull/2620#discussion_r1720878997


##########
hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/backend/cache/CachedSchemaTransactionV2.java:
##########
@@ -105,7 +105,8 @@ private void listenChanges() {
             }
             return false;
         };
-        
this.graphParams().loadGraphStore().provider().listen(this.storeEventListener);
+        this.graphParams().loadGraphStore().provider()
+            .listenSchemaCacheClear(this.storeEventListener);
 
         // Listen cache event: "cache"(invalid cache item)
         this.cacheEventListener = event -> {

Review Comment:
   CachedSchemaTransactionV2 is the CachedSchemaTransaction corresponding to 
the SchemaTransaction of the pd-store version. We added a V2 to distinguish it 
from the previous version. Due to the inconsistency of the parameters required 
for construction, it is currently not easy to reuse, will be merged later...



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to