Browse Source

HDDS-1692. RDBTable#iterator should disabled caching of the keys during iterator. (#975)

Bharat Viswanadham 5 năm trước cách đây
mục cha
commit
ba681bb80e

+ 1 - 0
hadoop-hdds/common/src/main/java/org/apache/hadoop/utils/db/RDBTable.java

@@ -162,6 +162,7 @@ class RDBTable implements Table<byte[], byte[]> {
   @Override
   public TableIterator<byte[], ByteArrayKeyValue> iterator() {
     ReadOptions readOptions = new ReadOptions();
+    readOptions.setFillCache(false);
     return new RDBStoreIterator(db.newIterator(handle, readOptions));
   }