db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mi...@apache.org
Subject svn commit: r329934 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/data/RAFContainer.java
Date Mon, 31 Oct 2005 23:42:26 GMT
Author: mikem
Date: Mon Oct 31 15:42:24 2005
New Revision: 329934

URL: http://svn.apache.org/viewcvs?rev=329934&view=rev
Log:
anther patch for DERBY-239, committed on behalf of: Suresh Thalamati.

Fix  to the problem found by Oystein  while reviewing the previous online 
backup patch(online_backup1.diff).
Backup of a container code was doing a seek  incorrectly on the file container
instead of the backup file. 


Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/data/RAFContainer.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/data/RAFContainer.java
URL: http://svn.apache.org/viewcvs/db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/data/RAFContainer.java?rev=329934&r1=329933&r2=329934&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/data/RAFContainer.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/data/RAFContainer.java
Mon Oct 31 15:42:24 2005
@@ -1076,10 +1076,10 @@
 				if (SanityManager.DEBUG) {
 					if (FormatIdUtil.readFormatIdInteger(pageData) != AllocPage.FORMAT_NUMBER)
 						SanityManager.THROWASSERT(
-												  "expect " +
-												  AllocPage.FORMAT_NUMBER +
-												  "got " +
-												  FormatIdUtil.readFormatIdInteger(pageData));
+                          "expect " +
+                          AllocPage.FORMAT_NUMBER +
+                          "got " +
+                          FormatIdUtil.readFormatIdInteger(pageData));
 				}
 
 			}
@@ -1097,7 +1097,7 @@
 			}
 			
 			long pageOffset = pageNumber * pageSize;
-			fileData.seek(pageOffset);
+			backupRaf.seek(pageOffset);
 			backupRaf.write(dataToWrite, 0, pageSize);
 
 		} catch (IOException ioe) {



Mime
View raw message