hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vinayakum...@apache.org
Subject hadoop git commit: HDFS-11710. hadoop-hdfs-native-client build fails in trunk in Windows after HDFS-11529 (Contributed by Sailesh Mukil)
Date Tue, 02 May 2017 05:03:29 GMT
Repository: hadoop
Updated Branches:
  refs/heads/trunk 6bf42e48e -> b0f54ea03


HDFS-11710. hadoop-hdfs-native-client build fails in trunk in Windows after HDFS-11529 (Contributed
by Sailesh Mukil)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/b0f54ea0
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/b0f54ea0
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/b0f54ea0

Branch: refs/heads/trunk
Commit: b0f54ea035f406909f45c66b5403580919d63a4a
Parents: 6bf42e4
Author: Vinayakumar B <vinayakumarb@apache.org>
Authored: Tue May 2 10:32:38 2017 +0530
Committer: Vinayakumar B <vinayakumarb@apache.org>
Committed: Tue May 2 10:32:38 2017 +0530

----------------------------------------------------------------------
 .../src/main/native/libhdfs/os/windows/thread_local_storage.c | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/b0f54ea0/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/os/windows/thread_local_storage.c
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/os/windows/thread_local_storage.c
b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/os/windows/thread_local_storage.c
index bf0979a..28d014d 100644
--- a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/os/windows/thread_local_storage.c
+++ b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs/os/windows/thread_local_storage.c
@@ -61,6 +61,13 @@ static void detachCurrentThreadFromJvm()
   free(state);
 }
 
+void hdfsThreadDestructor(void *v)
+{
+  // Ignore 'v' since it will contain the state and we will obtain it in the below
+  // call anyway.
+  detachCurrentThreadFromJvm();
+}
+
 /**
  * Unlike pthreads, the Windows API does not seem to provide a convenient way to
  * hook a callback onto thread shutdown.  However, the Windows portable


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message