Amend HDFS-799. Remove unnecessary tls check. Contributed by Colin Patrick McCabe
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1361563 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a9629c6fe7
commit
d03fb9c0d2
|
@ -74,8 +74,6 @@ static void hdfsThreadDestructor(void *v)
|
||||||
JNIEnv *env = tls->env;
|
JNIEnv *env = tls->env;
|
||||||
jint ret;
|
jint ret;
|
||||||
|
|
||||||
if (!tls)
|
|
||||||
return;
|
|
||||||
ret = (*env)->GetJavaVM(env, &vm);
|
ret = (*env)->GetJavaVM(env, &vm);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
fprintf(stderr, "hdfsThreadDestructor: GetJavaVM failed with "
|
fprintf(stderr, "hdfsThreadDestructor: GetJavaVM failed with "
|
||||||
|
|
Loading…
Reference in New Issue