MAPREDUCE-6391. util/Timer.cc completely misunderstands _POSIX_CPUTIME (Alan Burlison via aw)

This commit is contained in:
Allen Wittenauer 2015-10-27 12:04:55 -07:00
parent 1396867b52
commit bcc4c746a8
2 changed files with 4 additions and 1 deletions

View File

@ -589,6 +589,9 @@ Release 2.8.0 - UNRELEASED
MAPREDUCE-6484. Yarn Client uses local address instead of RM address as MAPREDUCE-6484. Yarn Client uses local address instead of RM address as
token renewer in a secure cluster when RM HA is enabled. (Zhihai Xu) token renewer in a secure cluster when RM HA is enabled. (Zhihai Xu)
MAPREDUCE-6391. util/Timer.cc completely misunderstands _POSIX_CPUTIME
(Alan Burlison via aw)
MAPREDUCE-6480. archive-logs tool may miss applications (rkanter) MAPREDUCE-6480. archive-logs tool may miss applications (rkanter)
MAPREDUCE-6494. Permission issue when running archive-logs tool as MAPREDUCE-6494. Permission issue when running archive-logs tool as

View File

@ -40,7 +40,7 @@ static uint64_t clock_get() {
static uint64_t clock_get() { static uint64_t clock_get() {
timespec ts; timespec ts;
clock_gettime(_POSIX_CPUTIME, &ts); clock_gettime(CLOCK_REALTIME, &ts);
return 1000000000 * ts.tv_sec + ts.tv_nsec; return 1000000000 * ts.tv_sec + ts.tv_nsec;
} }