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:
James 2016-02-05 11:23:57 -05:00 committed by James Clampffer
parent 22ae319360
commit 2cd7ab5e94

View File

@ -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_;