*/
public void initLogManager() throws IOException, InvalidLogException
{
LogAnchor scanPoint = new LogAnchor();
LogScanner scanner;
UserLogRecord logRecord;
LogFileManager.LogFileReader reader;
// Read and verify control file
boolean controlFileExists = true;
try
{
this.readControlFile();
}
catch ( FileNotFoundException e )
{
controlFileExists = false;
}
if ( controlFileExists )
{
boolean invalidLog = false;
// Set the min log anchor from the control file
minLogAnchor.resetLogAnchor( controlFileRecord.minNeededLogFile,
controlFileRecord.minNeededLogFileOffset, controlFileRecord.minNeededLSN );
scanPoint.resetLogAnchor( minLogAnchor );
logRecord = new UserLogRecord();
scanner = new DefaultLogScanner( scanPoint, logFileManager );
try
{
while ( scanner.getNextRecord( logRecord ) )