[Java] Correct the library loading for zlib in RocksJava.

Summary:
Correct the library loading for zlib in RocksJava: zlib should
be loaded by loadLibrary("z") instead of loadLibrary("zlib").

Test Plan:
make rocksdbjava
cd java
make db_bench
./jdb_bench.sh --compression_type=zlib

Reviewers: sdong, ljin, ankgup87

Reviewed By: ankgup87

Subscribers: leveldb

Differential Revision: https://reviews.facebook.net/D19341
This commit is contained in:
Yueh-Hsuan Chiang
2014-06-29 12:35:47 -07:00
parent 918a355e00
commit f799c8be5f
2 changed files with 2 additions and 2 deletions

View File

@@ -463,7 +463,7 @@ public class DbBenchmark {
if (compressionType_.equals("snappy")) {
System.loadLibrary("snappy");
} else if (compressionType_.equals("zlib")) {
System.loadLibrary("zlib");
System.loadLibrary("z");
} else if (compressionType_.equals("bzip2")) {
System.loadLibrary("bzip2");
} else if (compressionType_.equals("lz4")) {