Update database

This commit is contained in:
Andrea Cavalli 2022-12-21 01:05:08 +01:00
parent 17ae98750e
commit 410d3563de
2 changed files with 16 additions and 4 deletions

View File

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

View File

@ -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();