Skip to content

Commit d4347d1

Browse files
committed
HADOOP-9481. Broken conditional logic with HADOOP_SNAPPY_LIBRARY. Contributed by Vadim Bondarev.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1481191 13f79535-47bb-0310-9956-ffa450edef68
1 parent cf963ce commit d4347d1

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

hadoop-common-project/hadoop-common/CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,9 @@ Trunk (Unreleased)
381381
variables from current process environment/does not support overriding
382382
when launching new process (Chris Nauroth via bikas)
383383

384+
HADOOP-9481. Broken conditional logic with HADOOP_SNAPPY_LIBRARY. (Vadim
385+
Bondarev via atm)
386+
384387
OPTIMIZATIONS
385388

386389
HADOOP-7761. Improve the performance of raw comparisons. (todd)

hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/snappy/SnappyCompressor.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
*/
1818

1919

20+
#include "org_apache_hadoop_io_compress_snappy.h"
21+
2022
#if defined HADOOP_SNAPPY_LIBRARY
2123

2224
#include <stdio.h>
@@ -28,7 +30,6 @@
2830
#include "config.h"
2931
#endif // UNIX
3032

31-
#include "org_apache_hadoop_io_compress_snappy.h"
3233
#include "org_apache_hadoop_io_compress_snappy_SnappyCompressor.h"
3334

3435
#define JINT_MAX 0x7fffffff

hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/snappy/SnappyDecompressor.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* limitations under the License.
1717
*/
1818

19+
#include "org_apache_hadoop_io_compress_snappy.h"
1920

2021
#if defined HADOOP_SNAPPY_LIBRARY
2122

@@ -24,11 +25,10 @@
2425
#include <string.h>
2526

2627
#ifdef UNIX
27-
#include "config.h"
2828
#include <dlfcn.h>
29+
#include "config.h"
2930
#endif
3031

31-
#include "org_apache_hadoop_io_compress_snappy.h"
3232
#include "org_apache_hadoop_io_compress_snappy_SnappyDecompressor.h"
3333

3434
static jfieldID SnappyDecompressor_clazz;

0 commit comments

Comments
 (0)