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

This commit is contained in:
James 2015-12-04 15:39:46 -05:00 committed by James Clampffer
parent 8dac1094d8
commit eb70a64362

View File

@ -154,8 +154,8 @@ 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())
kNamenodeProtocolVersion), client_name_(GetRandomClientName()),
bad_node_tracker_(std::make_shared<BadDataNodeTracker>())
{
// Poor man's move
io_service = nullptr;