Package org.chaidb.db.helper

Examples of org.chaidb.db.helper.SafeUpdateUtils


            if (frc == null) {
                frc = FrControlFile.createControlFile(logPath);
            }

            SafeUpdateUtils bu = new SafeUpdateUtils();

            try {
                bu.backupFiles(new String[]{frc.getControlFilePath()}, "icb");
            } catch (IOException e) {
                return false;
            }

            try {
                frc.setLastLsn(prevLastLsn.toString());
                frc.setLastSLsn(lastSLsn.toString());
                frc.writeToDisk();
            } finally {
                bu.clearFiles();
            }

            logger.debug("Run out of ForwardRecovery.recover");

            return true;
View Full Code Here


        if (frc == null) {
            frc = FrControlFile.createControlFile(logPath);
        }

        SafeUpdateUtils bu = new SafeUpdateUtils();

        try {
            bu.backupFiles(new String[]{frc.getControlFilePath()}, "icb");
        } catch (IOException e) {
            throw new ChaiDBException(ErrorCode.RECOVER_ERROR_BASE, "Can't backup " + frc.getControlFilePath());
        }

        try {
            frc.setLastLsn(prevLastLsn.toString());
            frc.setLastSLsn(lastSLsn.toString());
            frc.writeToDisk();
        } finally {
            bu.clearFiles();
        }
    }
View Full Code Here

TOP

Related Classes of org.chaidb.db.helper.SafeUpdateUtils

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.