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