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
This commit is contained in:
Aaron Myers 2013-05-10 21:17:13 +00:00
parent b1603b44c5
commit b98b776363
3 changed files with 7 additions and 3 deletions

View File

@ -381,6 +381,9 @@ Trunk (Unreleased)
variables from current process environment/does not support overriding variables from current process environment/does not support overriding
when launching new process (Chris Nauroth via bikas) when launching new process (Chris Nauroth via bikas)
HADOOP-9481. Broken conditional logic with HADOOP_SNAPPY_LIBRARY. (Vadim
Bondarev via atm)
OPTIMIZATIONS OPTIMIZATIONS
HADOOP-7761. Improve the performance of raw comparisons. (todd) HADOOP-7761. Improve the performance of raw comparisons. (todd)

View File

@ -17,6 +17,8 @@
*/ */
#include "org_apache_hadoop_io_compress_snappy.h"
#if defined HADOOP_SNAPPY_LIBRARY #if defined HADOOP_SNAPPY_LIBRARY
#include <stdio.h> #include <stdio.h>
@ -28,7 +30,6 @@
#include "config.h" #include "config.h"
#endif // UNIX #endif // UNIX
#include "org_apache_hadoop_io_compress_snappy.h"
#include "org_apache_hadoop_io_compress_snappy_SnappyCompressor.h" #include "org_apache_hadoop_io_compress_snappy_SnappyCompressor.h"
#define JINT_MAX 0x7fffffff #define JINT_MAX 0x7fffffff

View File

@ -16,6 +16,7 @@
* limitations under the License. * limitations under the License.
*/ */
#include "org_apache_hadoop_io_compress_snappy.h"
#if defined HADOOP_SNAPPY_LIBRARY #if defined HADOOP_SNAPPY_LIBRARY
@ -24,11 +25,10 @@
#include <string.h> #include <string.h>
#ifdef UNIX #ifdef UNIX
#include "config.h"
#include <dlfcn.h> #include <dlfcn.h>
#include "config.h"
#endif #endif
#include "org_apache_hadoop_io_compress_snappy.h"
#include "org_apache_hadoop_io_compress_snappy_SnappyDecompressor.h" #include "org_apache_hadoop_io_compress_snappy_SnappyDecompressor.h"
static jfieldID SnappyDecompressor_clazz; static jfieldID SnappyDecompressor_clazz;