HDFS-9504. Initialize BadNodeTracker in FileSystemImpl constructor. Contributed by James Clampffer.
This commit is contained in:
parent
8dac1094d8
commit
eb70a64362
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user