hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r470096 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/dfs/FSImage.java
Date Wed, 01 Nov 2006 20:47:29 GMT
Author: cutting
Date: Wed Nov  1 12:47:28 2006
New Revision: 470096

URL: http://svn.apache.org/viewvc?view=rev&rev=470096
Log:
HADOOP-669.  Fix a problem introduced by HADOOP-90 that could cause DFS to lose files.  Contributed
by Milind.

Modified:
    lucene/hadoop/trunk/CHANGES.txt
    lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSImage.java

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?view=diff&rev=470096&r1=470095&r2=470096
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Wed Nov  1 12:47:28 2006
@@ -124,6 +124,9 @@
     places and add more informative thread names.
     (omalley via cutting)
 
+35. HADOOP-669.  Fix a problem introduced by HADOOP-90 that can cause
+    DFS to lose files.  (Milind Bhandarkar via cutting)
+
 
 Release 0.7.2 - 2006-10-18
 

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSImage.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSImage.java?view=diff&rev=470096&r1=470095&r2=470096
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSImage.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSImage.java Wed Nov  1 12:47:28 2006
@@ -105,7 +105,7 @@
     
     // Now check all curFiles and see which is the newest
     File curFile = null;
-    long maxTimeStamp = 0;
+    long maxTimeStamp = Long.MIN_VALUE;
     for (int idx = 0; idx < imageDirs.length; idx++) {
       File file = new File(imageDirs[idx], FS_IMAGE);
       if (file.exists()) {



Mime
View raw message