Load zstd before rocksdb

This commit is contained in:
Andrea Cavalli 2024-09-27 00:25:03 +02:00
parent b2bfd0f23a
commit 1afa4c183a

View File

@ -49,6 +49,9 @@ public class RocksDBLoader {
System.loadLibrary(compressionType.getLibraryName());
}
} catch (final UnsatisfiedLinkError e) {
if (compressionType == CompressionType.LZ4_COMPRESSION) {
throw new IllegalStateException("Can't load LZ4", e);
}
if (compressionType == CompressionType.ZSTD_COMPRESSION) {
throw new IllegalStateException("Can't load ZSTD", e);
}