You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by jh...@apache.org on 2015/12/04 21:40:40 UTC

hadoop git commit: HDFS-9504. Initialize BadNodeTracker in FileSystemImpl constructor. Contributed by James Clampffer.

Repository: hadoop
Updated Branches:
  refs/heads/HDFS-8707 fbf15de22 -> f3e0c50c0


HDFS-9504.  Initialize BadNodeTracker in FileSystemImpl constructor.  Contributed by James Clampffer.


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

Branch: refs/heads/HDFS-8707
Commit: f3e0c50c0a17e902c1338b1a841b7ce07cddcdd6
Parents: fbf15de
Author: James <jh...@apache.org>
Authored: Fri Dec 4 15:39:46 2015 -0500
Committer: James <jh...@apache.org>
Committed: Fri Dec 4 15:39:46 2015 -0500

----------------------------------------------------------------------
 .../src/main/native/libhdfspp/lib/fs/filesystem.cc             | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/f3e0c50c/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/lib/fs/filesystem.cc
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/lib/fs/filesystem.cc b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/lib/fs/filesystem.cc
index 7404606..36a4cbf 100644
--- a/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/lib/fs/filesystem.cc
+++ b/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/lib/fs/filesystem.cc
@@ -153,9 +153,9 @@ FileSystem * FileSystem::New(
 FileSystemImpl::FileSystemImpl(IoService *&io_service, const Options &options)
   :   io_service_(static_cast<IoServiceImpl *>(io_service)),
       nn_(&io_service_->io_service(), options,
-          GetRandomClientName(), kNamenodeProtocol,
-          kNamenodeProtocolVersion),
-      client_name_(GetRandomClientName())
+      GetRandomClientName(), kNamenodeProtocol,
+      kNamenodeProtocolVersion), client_name_(GetRandomClientName()),
+      bad_node_tracker_(std::make_shared<BadDataNodeTracker>())
 {
   // Poor man's move
   io_service = nullptr;