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/fb4ba549
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/fb4ba549
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/fb4ba549

Branch: refs/heads/HDFS-10467
Commit: fb4ba549bc6c99d453f193caeab3c9a189d909ec
Parents: f55691e
Author: Vinayakumar B <[email protected]>
Authored: Tue May 2 10:32:38 2017 +0530
Committer: Inigo <[email protected]>
Committed: Tue May 2 14:52:07 2017 -0700

----------------------------------------------------------------------
 .../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/fb4ba549/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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to