Update database
This commit is contained in:
parent
17ae98750e
commit
410d3563de
6
pom.xml
6
pom.xml
@ -98,7 +98,7 @@
|
||||
<dependency>
|
||||
<groupId>io.projectreactor</groupId>
|
||||
<artifactId>reactor-bom</artifactId>
|
||||
<version>2020.0.24</version>
|
||||
<version>2022.0.1</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
@ -110,7 +110,7 @@
|
||||
<artifactId>reactor-tools</artifactId>
|
||||
<classifier>original</classifier>
|
||||
<scope>runtime</scope>
|
||||
<version>3.4.24</version>
|
||||
<version>3.5.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.guava</groupId>
|
||||
@ -237,7 +237,7 @@
|
||||
<dependency>
|
||||
<groupId>org.rocksdb</groupId>
|
||||
<artifactId>rocksdbjni</artifactId>
|
||||
<version>7.7.3</version>
|
||||
<version>7.8.3</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.lucene</groupId>
|
||||
|
@ -909,7 +909,18 @@ public class LLLocalKeyValueDatabase extends Backuppable implements LLKeyValueDa
|
||||
// end force compact
|
||||
}
|
||||
|
||||
record OptionsWithCache(DBOptions options, @Nullable Cache standardCache, @Nullable Cache compressedCache) {}
|
||||
|
||||
record OptionsWithCache(DBOptions options, @Nullable Cache standardCache, @Nullable Cache compressedCache) {
|
||||
|
||||
/**
|
||||
* SecondaryCache will replace compressed cache
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
@Override
|
||||
public Cache compressedCache() {
|
||||
return compressedCache;
|
||||
}
|
||||
}
|
||||
|
||||
private static OptionsWithCache openRocksDb(@Nullable Path path, DatabaseOptions databaseOptions, RocksDBRefs refs)
|
||||
throws IOException {
|
||||
@ -1001,6 +1012,7 @@ public class LLLocalKeyValueDatabase extends Backuppable implements LLKeyValueDa
|
||||
}
|
||||
|
||||
Cache blockCache;
|
||||
//todo: compressed cache will be replaced with SecondaryCache in the future
|
||||
Cache compressedCache;
|
||||
final boolean useDirectIO = databaseOptions.useDirectIO();
|
||||
final boolean allowMmapReads = !useDirectIO && databaseOptions.allowMemoryMapping();
|
||||
|
Loading…
Reference in New Issue
Block a user