[
https://issues.apache.org/jira/browse/MAPREDUCE-1125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Masatake Iwasaki updated MAPREDUCE-1125:
----------------------------------------
Attachment: MAPREDUCE-1125.004.patch
I attached rebased patch. I left the version of old signature for backward
compatibility. There is no test code for .cc in the current tree of hadoop-pipes
> SerialUtils.cc: deserializeFloat is out of sync with SerialUtils.hh
> -------------------------------------------------------------------
>
> Key: MAPREDUCE-1125
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-1125
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: pipes
> Affects Versions: 0.21.0
> Reporter: Simone Leo
> Assignee: Simone Leo
> Labels: BB2015-05-TBR
> Attachments: MAPREDUCE-1125-2.patch, MAPREDUCE-1125-3.patch,
> MAPREDUCE-1125.004.patch
>
>
> {noformat}
> *** SerialUtils.hh ***
> float deserializeFloat(InStream& stream);
> *** SerialUtils.cc ***
> void deserializeFloat(float& t, InStream& stream)
> {
> char buf[sizeof(float)];
> stream.read(buf, sizeof(float));
> XDR xdrs;
> xdrmem_create(&xdrs, buf, sizeof(float), XDR_DECODE);
> xdr_float(&xdrs, &t);
> }
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)