[pkg-jboss-commits] cvs commit to jboss3/cluster/src/main/org/jboss/ha/framework/server by agx

pkg-jboss-commits@lists.alioth.debian.org pkg-jboss-commits@lists.alioth.debian.org
Thu, 17 Jun 2004 10:05:04 -0600


Update of /cvsroot/pkg-jboss/jboss3/cluster/src/main/org/jboss/ha/framework/server
In directory haydn:/tmp/cvs-serv20824

Modified Files:
	FarmMemberService.java 
Log Message:
dont fail silently if farm/ isnt writeable

Index: FarmMemberService.java
===================================================================
RCS file: /cvsroot/pkg-jboss/jboss3/cluster/src/main/org/jboss/ha/framework/server/FarmMemberService.java,v
retrieving revision 1.1.1.2
retrieving revision 1.2
diff -u -d -r1.1.1.2 -r1.2
--- FarmMemberService.java	16 Jun 2004 19:40:25 -0000	1.1.1.2
+++ FarmMemberService.java	17 Jun 2004 16:05:01 -0000	1.2
@@ -278,7 +278,10 @@
                lFarmFile.delete();
             }
             lFile.setLastModified( date.getTime() );
-            lFile.renameTo( lFarmFile );
+            if(lFile.renameTo( lFarmFile ) == false) {
+                log.error( "Failed to rename " + lFile + " to " + lFarmFile );
+	    }
+
          }
          else
          {