From e76ad4d5a8a6969a915065dc89b583ba6bfe44ca Mon Sep 17 00:00:00 2001 From: dsandersoremutah Date: Mon, 1 May 2006 16:42:42 +0000 Subject: [PATCH] Bugzilla defect 169989. When writing blocks in the rollback log back into the database, we need to write out the full block size, not just the part of the block that has data. This is necessary in case the blocks we are writing back have not ever actually been flushed out of cache. git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@367 0109f412-320b-0410-ab79-c3e0c5ffbbe6 --- flaim/src/recover.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flaim/src/recover.cpp b/flaim/src/recover.cpp index 19414ef..09a2811 100644 --- a/flaim/src/recover.cpp +++ b/flaim/src/recover.cpp @@ -254,7 +254,7 @@ FSTATIC RCODE flmProcessBeforeImage( // Determine the block address before setting the checksum uiBlkAddress = (FLMUINT)GET_BH_ADDR( pBlk); - uiBlkLength = getEncryptSize( pBlk); + uiBlkLength = pFile->FileHdr.uiBlockSize; // Set the block checksum AFTER encrypting