[
https://issues.apache.org/jira/browse/HDFS-6421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mit Desai updated HDFS-6421:
----------------------------
Attachment: HDFS-6421.patch
This code in the stopwatch structure gets the rusage and stores it into
{{struct rusage rusage;}} but it is never used.
{code}
if (getrusage(RUSAGE_THREAD, &watch->rusage) < 0) {
int err = errno;
fprintf(stderr, "getrusage failed: error %d (%s)\n",
err, strerror(err));
goto error;
}
{code}
Removing the block as to get REHL4 compiling again.
> RHEL4 fails to compile vecsum.c
> -------------------------------
>
> Key: HDFS-6421
> URL: https://issues.apache.org/jira/browse/HDFS-6421
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: libhdfs
> Affects Versions: 2.5.0
> Environment: RHEL4
> Reporter: Jason Lowe
> Assignee: Mit Desai
> Attachments: HDFS-6421.patch
>
>
> After HDFS-6287 RHEL4 builds fail trying to compile vecsum.c since they don't
> have RUSAGE_THREAD. RHEL4 is ancient, but we use it in a 32-bit
> compatibility environment.
--
This message was sent by Atlassian JIRA
(v6.2#6252)