You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ra...@apache.org on 2008/09/26 19:16:05 UTC
svn commit: r699417 - in /hadoop/core/branches/branch-0.19: ./ CHANGES.txt
src/c++/libhdfs/hdfs.c
Author: rangadi
Date: Fri Sep 26 10:16:05 2008
New Revision: 699417
URL: http://svn.apache.org/viewvc?rev=699417&view=rev
Log:
HADOOP-4280. Fix conversions between seconds in C and milliseconds in
Java for access times for files. (Pete Wyckoff via rangadi)
Modified:
hadoop/core/branches/branch-0.19/ (props changed)
hadoop/core/branches/branch-0.19/CHANGES.txt
hadoop/core/branches/branch-0.19/src/c++/libhdfs/hdfs.c
Propchange: hadoop/core/branches/branch-0.19/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Fri Sep 26 10:16:05 2008
@@ -1 +1 @@
-/hadoop/core/trunk:697306,698176,699056,699098
+/hadoop/core/trunk:697306,698176,699056,699098,699415
Modified: hadoop/core/branches/branch-0.19/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/branches/branch-0.19/CHANGES.txt?rev=699417&r1=699416&r2=699417&view=diff
==============================================================================
--- hadoop/core/branches/branch-0.19/CHANGES.txt (original)
+++ hadoop/core/branches/branch-0.19/CHANGES.txt Fri Sep 26 10:16:05 2008
@@ -734,6 +734,9 @@
into the old name and deprecating it. Also update the tests to test the
new class. (cdouglas via omalley)
+ HADOOP-4280. Fix conversions between seconds in C and milliseconds in
+ Java for access times for files. (Pete Wyckoff via rangadi)
+
Release 0.18.2 - Unreleased
BUG FIXES
Modified: hadoop/core/branches/branch-0.19/src/c++/libhdfs/hdfs.c
URL: http://svn.apache.org/viewvc/hadoop/core/branches/branch-0.19/src/c%2B%2B/libhdfs/hdfs.c?rev=699417&r1=699416&r2=699417&view=diff
==============================================================================
--- hadoop/core/branches/branch-0.19/src/c++/libhdfs/hdfs.c (original)
+++ hadoop/core/branches/branch-0.19/src/c++/libhdfs/hdfs.c Fri Sep 26 10:16:05 2008
@@ -1469,8 +1469,8 @@
return -2;
}
- jlong jmtime = mtime * 1000;
- jlong jatime = atime * 1000;
+ jlong jmtime = mtime * (jlong)1000;
+ jlong jatime = atime * (jlong)1000;
int ret = 0;
jthrowable jExc = NULL;
@@ -1775,7 +1775,7 @@
"FileStatus::getModificationTime");
return -1;
}
- fileInfo->mLastMod = (tTime) (jVal.j) / 1000;
+ fileInfo->mLastMod = (tTime) (jVal.j / 1000);
if (invokeMethod(env, &jVal, &jExc, INSTANCE, jStat,
HADOOP_STAT, "getAccessTime", "()J") != 0) {
@@ -1783,7 +1783,7 @@
"FileStatus::getAccessTime");
return -1;
}
- fileInfo->mLastAccess = (tTime) (jVal.j) / 1000;
+ fileInfo->mLastAccess = (tTime) (jVal.j / 1000);
if (fileInfo->mKind == kObjectKindFile) {