Added readOffset method to F_SuperFileHdl class so it can be called from flmRestoreFile correctly - instead of calling readBlock, which was incorrect.

git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@1050 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
dsandersoremutah
2007-05-22 20:10:17 +00:00
parent fb3a437dab
commit 6e19d16196
3 changed files with 29 additions and 11 deletions

View File

@@ -1941,8 +1941,7 @@ FSTATIC RCODE flmRestoreFile(
// Compare the incremental backup sequence number to the value in the
// database's log header.
if( RC_BAD( rc = pSFile->readBlock(
FSBlkAddress( 0, DB_LOG_HEADER_START + LOG_INC_BACKUP_SEQ_NUM),
if( RC_BAD( rc = pSFile->readOffset( 0, DB_LOG_HEADER_START + LOG_INC_BACKUP_SEQ_NUM,
4, ucTmpSeqNum, &uiTmp)))
{
goto Exit;
@@ -1957,8 +1956,7 @@ FSTATIC RCODE flmRestoreFile(
// Compare the incremental backup serial number to the value in the
// database's log header.
if( RC_BAD( rc = pSFile->readBlock(
FSBlkAddress( 0, DB_LOG_HEADER_START + LOG_INC_BACKUP_SERIAL_NUM),
if( RC_BAD( rc = pSFile->readOffset( 0, DB_LOG_HEADER_START + LOG_INC_BACKUP_SERIAL_NUM,
F_SERIAL_NUM_SIZE, ucTmpSerialNum, &uiTmp)))
{
goto Exit;