vaijosh commented on code in PR #3081:
URL: https://github.com/apache/hugegraph/pull/3081#discussion_r3666448833


##########
hugegraph-store/hg-store-rocksdb/src/main/java/org/apache/hugegraph/rocksdb/access/SessionOperatorImpl.java:
##########
@@ -208,7 +208,14 @@ public void deleteRange(byte[] keyFrom, byte[] keyTo) 
throws DBStoreException {
     @Override
     public byte[] get(String table, byte[] key) throws DBStoreException {
         try (CFHandleLock cf = this.getLock(table)) {
-            return rocksdb().get(cf.get(), key);
+            byte[] value = rocksdb().get(cf.get(), key);
+            if (value != null) {
+                return value;
+            }
+            if (RocksDBFactory.getInstance().onReadMiss(this.session, table, 
key)) {

Review Comment:
   Addressed in latest commit



-- 
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