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
This commit is contained in:
parent
32d4c148df
commit
3e5e1008db
@ -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
Block a user