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/HDFS-10467 Commit: b0f54ea035f406909f45c66b5403580919d63a4a Parents: 6bf42e4 Author: Vinayakumar B <vinayakum...@apache.org> Authored: Tue May 2 10:32:38 2017 +0530 Committer: Vinayakumar B <vinayakum...@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-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org