Examples of logForceFlush()


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

            /*
             * Always flush to ensure that cleaned files are not referenced,
             * and to ensure that this checkpoint is not wasted if we crash.
             */
            lastCheckpointEnd =
                logManager.logForceFlush(endEntry,
                                         true /*fsyncRequired*/,
                                         ReplicationContext.NO_REPLICATE);

            lastCheckpointStart = checkpointStart;

View Full Code Here

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

        SingleItemEntry prepareEntry =
            new SingleItemEntry(LogEntryType.LOG_TXN_PREPARE,
                                new TxnPrepare(id,xid));
        /* Flush required. */
        LogManager logManager = envImpl.getLogManager();
        logManager.logForceFlush(prepareEntry,
                                 true,  // fsyncrequired
                                 ReplicationContext.NO_REPLICATE);

        return XAResource.XA_OK;
    }
View Full Code Here

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

                new SingleItemEntry(LogEntryType.LOG_ROLLBACK_START,
                                    new RollbackStart(matchpointVLSN,
                                                      matchpointLsn,
                                                      activeTxns.keySet()));
            long rollbackStartLsn =
                logManager.logForceFlush(rollbackStart,
                                         true, // fsyncRequired,
                                         ReplicationContext.NO_REPLICATE);
            rollbackStatus = RBSTATUS_LOG_RBSTART;

            /*
 
View Full Code Here

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

            /*
             * 5. Log RollbackEnd. Flush it so that we can use it to optimize
             * recoveries later on. If the RollbackEnd exists, we can skip the
             * step of re-making LNs invisible.
             */
            logManager.logForceFlush
                (new SingleItemEntry(LogEntryType.LOG_ROLLBACK_END,
                                     new RollbackEnd(matchpointLsn,
                                                     rollbackStartLsn)),
                 true, // fsyncRequired
                 ReplicationContext.NO_REPLICATE);
View Full Code Here

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

      }

      TxnPrepare prepareRecord =
    new TxnPrepare(id, xid); /* Flush required. */
      LogManager logManager = envImpl.getLogManager();
      logManager.logForceFlush(prepareRecord, true); // sync required
  }
  setPrepared(true);
  return XAResource.XA_OK;
    }

View Full Code Here

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

                    numWriteLocks = writeInfo.size();
                    TxnCommit commitRecord =
                        new TxnCommit(id, lastLoggedLsn);
        if (flushSyncBehavior == TXN_SYNC) {
      /* Flush and sync required. */
      commitLsn = logManager.
          logForceFlush(commitRecord, true);
        } else if (flushSyncBehavior == TXN_WRITE_NOSYNC) {
      /* Flush but no sync required. */
      commitLsn = logManager.
          logForceFlush(commitRecord, false);
View Full Code Here

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

      /* Flush and sync required. */
      commitLsn = logManager.
          logForceFlush(commitRecord, true);
        } else if (flushSyncBehavior == TXN_WRITE_NOSYNC) {
      /* Flush but no sync required. */
      commitLsn = logManager.
          logForceFlush(commitRecord, false);
        } else {
      /* No flush, no sync required. */
      commitLsn = logManager.log(commitRecord);
        }
View Full Code Here

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

            SingleItemEntry prepareEntry =
                new SingleItemEntry(LogEntryType.LOG_TXN_PREPARE,
                                    new TxnPrepare(id,xid));
            /* Flush required. */
            LogManager logManager = envImpl.getLogManager();
            logManager.logForceFlush(prepareEntry,
                                     true,  // fsyncrequired
                                     ReplicationContext.NO_REPLICATE);
        }
        return XAResource.XA_OK;
    }
View Full Code Here

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

      }

      TxnPrepare prepareRecord =
    new TxnPrepare(id, xid); /* Flush required. */
      LogManager logManager = envImpl.getLogManager();
      logManager.logForceFlush(prepareRecord, true); // sync required
  }
  setPrepared(true);
  return XAResource.XA_OK;
    }

View Full Code Here

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

                    numWriteLocks = writeInfo.size();
                    TxnCommit commitRecord =
                        new TxnCommit(id, lastLoggedLsn);
        if (flushSyncBehavior == TXN_SYNC) {
      /* Flush and sync required. */
      commitLsn = logManager.
          logForceFlush(commitRecord, true);
        } else if (flushSyncBehavior == TXN_WRITE_NOSYNC) {
      /* Flush but no sync required. */
      commitLsn = logManager.
          logForceFlush(commitRecord, false);
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.