Package org.chaidb.db.index.btree.bufmgr

Examples of org.chaidb.db.index.btree.bufmgr.PageBufferManager$OpenedBTree


    protected boolean doRedo(byte[] page) throws ChaiDBException {
        /* redo allocate a new page function */
        /* free the allocated page function */
        try {
            /* add page to freelist of BufferedPage in memory*/
            PageBufferManager bp = bpm;
            bp.addToFreeList(treeId, super.getPageNum(), new Integer(super.getTxnId()));

            return true;
        } catch (Exception e) {
            logger.debug(e);
            throw new ChaiDBException(ErrorCode.LOG_REDO_FAILED, e.toString());
View Full Code Here


            //            synchronized (BufferedPage.getInstance()) {
            //flush log buffer to disk.
            txnManager.getLogManager().flush();

            //Flush btree buffer to disk.
            PageBufferManager bpm = PageBufferManager.getInstance();
            bpm.dump(sync);

            //because dump() may generate new log records, so that
            //flush log again.
            txnManager.getLogManager().flush();
View Full Code Here

TOP

Related Classes of org.chaidb.db.index.btree.bufmgr.PageBufferManager$OpenedBTree

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.