Package com.sleepycat.je.log

Examples of com.sleepycat.je.log.LogManager.log()


             * it has a different node id.
             */
            EnvironmentImpl envImpl = database.getDbEnvironment();
            LogManager logManager = envImpl.getLogManager();

            logManager.log(new INDeleteInfo
                           (rootIN.getNodeId(),
                            rootIN.getIdentifierKey(),
                            database.getId()));

       
View Full Code Here


                     * this duplicate tree has been eradicated. This
                     * is analagous to deleting a root; we must be sure
                     * that we can overlay another subtree onto this slot
                     * at recovery redo.
                     */
                    logManager.log(new INDupDeleteInfo
                                   (duplicateRoot.getNodeId(),
                                    duplicateRoot.getMainTreeKey(),
                                    duplicateRoot.getDupTreeKey(),
                                    database.getId()));

View Full Code Here

      /* Flush but no sync required. */
      commitLsn = logManager.
          logForceFlush(commitRecord, false);
        } else {
      /* No flush, no sync required. */
      commitLsn = logManager.log(commitRecord);
        }
               
                    /*
                     * Set database state for deletes before releasing any
                     * write locks.
View Full Code Here

                                         logAbortLsn,
                                         logAbortKnownDeleted,
                                         logTxn);

            LogManager logManager = env.getLogManager();
            newLsn = logManager.log(logEntry, false, oldLsn);

        } else {

            /*
             * Non duplicate LN, just log the normal way.
View Full Code Here

                                             logAbortLsn,
               logAbortKnownDeleted,
                                             logTxn);

        LogManager logManager = env.getLogManager();
        return logManager.log(logEntry, isProvisional, oldLsn);
    }

    /**
     * Log type for transactional entries
     */
 
View Full Code Here

                SingleItemEntry startEntry =
                    new SingleItemEntry(LogEntryType.LOG_CKPT_START,
                                        new CheckpointStart(checkpointId,
                                                            invokingSource));
                checkpointStart =
                    logManager.log(startEntry,
                                   ReplicationContext.NO_REPLICATE);

                /*
                 * Note the first active LSN point. The definition of
                 * firstActiveLsn is that all log entries for active
View Full Code Here

                     * LSN 1020 new BIN, for next set of inserts.
                     *
                     * The entry at 1000 is needed so that LSN 1010 will
                     * properly supercede all previous IN entries in the tree.
                     */
                    logManager.log(new INDeleteInfo
                                   (rootIN.getNodeId(),
                                    rootIN.getIdentifierKey(),
                                    database.getId()));

                    /* Count obsolete nodes after logging the delete info. */
 
View Full Code Here

                 * Record in the log the nodeid of the highest node in the
                 * subtree that we're deleting. We'll use this later to
                 * navigate to the right place if we need to replay this
                 * delete.
                 */
                logManager.log(new INDeleteInfo
             (subtreeRootIN.getNodeId(),
        subtreeRootIN.getIdentifierKey(),
        database.getId()));

                /* Count obsolete nodes after logging the delete info. */
 
View Full Code Here

          if (duplicateRoot.isValidForDelete()) {
        boolean deleteOk =
            bin.deleteEntry(index, true);
        assert deleteOk;

        logManager.log(new INDupDeleteInfo
                 (duplicateRoot.getNodeId(),
            duplicateRoot.getMainTreeKey(),
            duplicateRoot.getDupTreeKey(),
            database.getId()));
View Full Code Here

       * Record in the log the nodeid of the highest node in
       * the subtree that we're deleting. We'll use this
       * later to navigate to the right place if we need to
       * replay this delete.
       */
      logManager.log(new INDupDeleteInfo
               (rootIN.getNodeId(),
          rootIN.getMainTreeKey(),
          rootIN.getDupTreeKey(),
          database.getId()));

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.