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
1 changed files with 3 additions and 3 deletions

View File

@ -153,9 +153,9 @@ FileSystem * FileSystem::New(
FileSystemImpl::FileSystemImpl(IoService *&io_service, const Options &options) FileSystemImpl::FileSystemImpl(IoService *&io_service, const Options &options)
: io_service_(static_cast<IoServiceImpl *>(io_service)), : io_service_(static_cast<IoServiceImpl *>(io_service)),
nn_(&io_service_->io_service(), options, nn_(&io_service_->io_service(), options,
GetRandomClientName(), kNamenodeProtocol, GetRandomClientName(), kNamenodeProtocol,
kNamenodeProtocolVersion), kNamenodeProtocolVersion), client_name_(GetRandomClientName()),
client_name_(GetRandomClientName()) bad_node_tracker_(std::make_shared<BadDataNodeTracker>())
{ {
// Poor man's move // Poor man's move
io_service = nullptr; io_service = nullptr;