Fix parallelism bug
This commit is contained in:
parent
e1e6065036
commit
c859b8238f
@ -571,10 +571,9 @@ public class DatabaseMapDictionary<T, U> extends DatabaseMapDictionaryDeep<T, U,
|
|||||||
public static <T, U> Stream<Stream<Entry<T, U>>> getAllEntriesFastUnsafe(DatabaseMapDictionary<T, U> dict,
|
public static <T, U> Stream<Stream<Entry<T, U>>> getAllEntriesFastUnsafe(DatabaseMapDictionary<T, U> dict,
|
||||||
BiConsumer<Entry<Buf, Buf>, Throwable> deserializationErrorHandler) {
|
BiConsumer<Entry<Buf, Buf>, Throwable> deserializationErrorHandler) {
|
||||||
try {
|
try {
|
||||||
Comparator<RocksDBFile> comparator = Comparator.<RocksDBFile>comparingInt(x -> x.getMetadata().level()).reversed();
|
|
||||||
return ((LLLocalDictionary) dict.dictionary)
|
return ((LLLocalDictionary) dict.dictionary)
|
||||||
.getAllLiveFiles()
|
.getAllLiveFiles()
|
||||||
.sorted(comparator)
|
.sequential()
|
||||||
.map(file -> file.iterate(new SSTRangeFull()).map(state -> switch (state) {
|
.map(file -> file.iterate(new SSTRangeFull()).map(state -> switch (state) {
|
||||||
case RocksDBFileIterationStateBegin rocksDBFileIterationStateBegin:
|
case RocksDBFileIterationStateBegin rocksDBFileIterationStateBegin:
|
||||||
yield null;
|
yield null;
|
||||||
|
Loading…
Reference in New Issue
Block a user