From 3e5e1008db79f45c00a526f25bce6498c191fb9f Mon Sep 17 00:00:00 2001 From: Eli Collins Date: Sat, 14 Jul 2012 17:02:05 +0000 Subject: [PATCH] Amend HDFS-799. Remove unnecessary tls check. Contributed by Colin Patrick McCabe git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1361561 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-hdfs-project/hadoop-hdfs/src/main/native/hdfsJniHelper.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/native/hdfsJniHelper.c b/hadoop-hdfs-project/hadoop-hdfs/src/main/native/hdfsJniHelper.c index e96a65ad1c..f6d6651950 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/native/hdfsJniHelper.c +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/native/hdfsJniHelper.c @@ -74,8 +74,6 @@ static void hdfsThreadDestructor(void *v) JNIEnv *env = tls->env; jint ret; - if (!tls) - return; ret = (*env)->GetJavaVM(env, &vm); if (ret) { fprintf(stderr, "hdfsThreadDestructor: GetJavaVM failed with "