From 1afa4c183ae4ffa5ad71b8e05cad40b502621ff6 Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Fri, 27 Sep 2024 00:25:03 +0200 Subject: [PATCH] Load zstd before rocksdb --- .../cavallium/rockserver/core/impl/rocksdb/RocksDBLoader.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/it/cavallium/rockserver/core/impl/rocksdb/RocksDBLoader.java b/src/main/java/it/cavallium/rockserver/core/impl/rocksdb/RocksDBLoader.java index 474329e..85d06ce 100644 --- a/src/main/java/it/cavallium/rockserver/core/impl/rocksdb/RocksDBLoader.java +++ b/src/main/java/it/cavallium/rockserver/core/impl/rocksdb/RocksDBLoader.java @@ -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); }