Examples of SafeUpdateUtils


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

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) {
            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
Copyright © 2018 www.massapi.com. 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.