hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmcc...@apache.org
Subject hadoop git commit: HADOOP-12972. Lz4Compressor#getLibraryName returns the wrong version number (cmccabe)
Date Wed, 30 Mar 2016 00:15:43 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2.8 bfe657e83 -> 28c81640d


HADOOP-12972. Lz4Compressor#getLibraryName returns the wrong version number (cmccabe)

(cherry picked from commit e3d15a2e236f93325c67f9e52fb16f645c44238a)
(cherry picked from commit 9df2e54160d3d959138857757d2d64d595b54093)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/28c81640
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/28c81640
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/28c81640

Branch: refs/heads/branch-2.8
Commit: 28c81640d3c07ea291ff2f307e99b589e37cb8fa
Parents: bfe657e
Author: Colin Patrick Mccabe <cmccabe@cloudera.com>
Authored: Tue Mar 29 17:13:52 2016 -0700
Committer: Colin Patrick Mccabe <cmccabe@cloudera.com>
Committed: Tue Mar 29 17:15:31 2016 -0700

----------------------------------------------------------------------
 .../native/src/org/apache/hadoop/io/compress/lz4/Lz4Compressor.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/28c81640/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/lz4/Lz4Compressor.c
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/lz4/Lz4Compressor.c
b/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/lz4/Lz4Compressor.c
index f742384..2c8af1b 100644
--- a/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/lz4/Lz4Compressor.c
+++ b/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/lz4/Lz4Compressor.c
@@ -87,7 +87,9 @@ JNIEXPORT jstring JNICALL
 Java_org_apache_hadoop_io_compress_lz4_Lz4Compressor_getLibraryName(
  JNIEnv *env, jclass class
  ) {
-  return (*env)->NewStringUTF(env, "revision:99");
+  char version_buf[128];
+  snprintf(version_buf, sizeof(version_buf), "revision:%d", LZ4_versionNumber());
+  return (*env)->NewStringUTF(env, version_buf);
 }
 
 JNIEXPORT jint JNICALL Java_org_apache_hadoop_io_compress_lz4_Lz4Compressor_compressBytesDirectHC


Mime
View raw message