Update rocksdb
This commit is contained in:
parent
5360a7dd7c
commit
b33bafec21
2
pom.xml
2
pom.xml
@ -237,7 +237,7 @@
|
||||
<dependency>
|
||||
<groupId>org.rocksdb</groupId>
|
||||
<artifactId>rocksdbjni</artifactId>
|
||||
<version>7.5.3</version>
|
||||
<version>7.6.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.lucene</groupId>
|
||||
|
@ -82,6 +82,7 @@ import org.rocksdb.LogFile;
|
||||
import org.rocksdb.MutableDBOptions;
|
||||
import org.rocksdb.OptimisticTransactionDB;
|
||||
import org.rocksdb.PersistentCache;
|
||||
import org.rocksdb.PrepopulateBlobCache;
|
||||
import org.rocksdb.RocksDB;
|
||||
import org.rocksdb.RocksDBException;
|
||||
import org.rocksdb.Snapshot;
|
||||
@ -230,6 +231,11 @@ public class LLLocalKeyValueDatabase extends Backuppable implements LLKeyValueDa
|
||||
}
|
||||
var blobFiles = columnOptions.blobFiles();
|
||||
columnFamilyOptions.setEnableBlobFiles(blobFiles);
|
||||
try {
|
||||
columnFamilyOptions.setPrepopulateBlobCache(PrepopulateBlobCache.PREPOPULATE_BLOB_FLUSH_ONLY);
|
||||
} catch (Throwable ex) {
|
||||
logger.error("Failed to set prepopulate blob cache", ex);
|
||||
}
|
||||
if (blobFiles) {
|
||||
if (columnOptions.blobFileSize().isPresent()) {
|
||||
columnFamilyOptions.setBlobFileSize(columnOptions.blobFileSize().get());
|
||||
|
Loading…
Reference in New Issue
Block a user