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)
: 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;