HDFS-9753. libhdfs++: Client fails to pass TokenProto from LocatedBlockProto to server when reading a block. Contributed by James Clampffer.
This commit is contained in:
parent
22ae319360
commit
2cd7ab5e94
@ -191,7 +191,7 @@ void FileHandleImpl::AsyncPreadSome(
|
||||
|
||||
// This is where we will put the logic for re-using a DN connection; we can
|
||||
// steal the FileHandle's dn and put it back when we're done
|
||||
std::shared_ptr<DataNodeConnection> dn = CreateDataNodeConnection(io_service_, chosen_dn, nullptr /*token*/);
|
||||
std::shared_ptr<DataNodeConnection> dn = CreateDataNodeConnection(io_service_, chosen_dn, &block->blocktoken());
|
||||
std::string dn_id = dn->uuid_;
|
||||
std::string client_name = client_name_;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user