Examples of LogInstant


Examples of org.apache.derby.iapi.store.raw.log.LogInstant

    if (state == ACTIVE)
      setUpdateState();

    seenUpdates = true;
   
    LogInstant clrInstant = logger.logAndUndo(this, compensation, undoInstant, in);

    setLastLogInstant(clrInstant);

    // set the top savepoint to rollback to this record if it doesn't yet have a point saved
    if ((savePoints != null) && !savePoints.empty()) {
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.log.LogInstant

   * @see Transaction#commit
     **/
  private LogInstant prepareCommit(int commitflag)
        throws StandardException
    {
    LogInstant flushTo = null;

    if (state == CLOSED)
        {
      throw StandardException.newException(
                    SQLState.XACT_PROTOCOL_VIOLATION);
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.log.LogInstant

    {
      if (SanityManager.DEBUG_ON("XATrace"))
        SanityManager.DEBUG("XATrace","commiting ");
    }

        LogInstant flushTo = prepareCommit(commitflag);

        completeCommit(commitflag);

        return(flushTo);
  }
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.log.LogInstant

      @exception StandardException  Standard Derby exception policy
    @see Transaction#logAndDo
  */
  public void logAndDo(Loggable operation) throws StandardException {

    LogInstant instant = null;

    if (logger == null)
      getLogger();

    if (logger == null)
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.log.LogInstant

    if (release) {
      savePoints.setSize(position);
      return false;
    }

    LogInstant rollbackTo = null;

    int size = savePoints.size();
    for (int i = position; i < size; i++) {
      SavePoint rollbackSavePoint = (SavePoint) savePoints.elementAt(i);

      LogInstant li = rollbackSavePoint.getSavePoint();
      if (li != null) {
        rollbackTo = li;
        break;
      }
    }
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.log.LogInstant

        {
      return null;
        }
    else
    {
      LogInstant logInstant = null;
           
            // bug 5632: need to sychronize so that another thread does not
            // come in and disrupt the for loop, we got an exception on next,
            // likely because hash table changed by another thread after
            // hasMoreElements() called, but before nextElement().
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.log.LogInstant

    synchronized(this)
    {
      int ntran = trans.size();
      tinfo = new TransactionTableEntry[ntran];

      LogInstant logInstant = null;
      int i = 0;

      for (Enumeration e = trans.elements();
         e.hasMoreElements(); )
      {
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.log.LogInstant

  public String getFirstLogInstantString()
  {
    if (SanityManager.DEBUG)
      SanityManager.ASSERT(isClone, "Should only call method on a clone");

    LogInstant logInstant =
            (myxact == null) ? null : myxact.getFirstLogInstant();

    return (logInstant == null) ? null : logInstant.toString();

  }   
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.log.LogInstant

      synchronized(droppedTableStubInfo)
      {
        for (Enumeration e = droppedTableStubInfo.keys();
                     e.hasMoreElements(); )
        {
          LogInstant logInstant  = (LogInstant) e.nextElement();
          if(logInstant.lessThan(redoLWM))
          {
           
            Object[] removeInfo =
                            (Object[]) droppedTableStubInfo.get(logInstant);
            Object identity = removeInfo[1];
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.log.LogInstant

    // force WAL - and check to see if database is corrupt or is frozen.
    // last log Instant may be null if the page is being forced
    // to disk on a createPage (which violates the WAL protocol actually).
    // See FileContainer.newPage
    LogInstant flushLogTo = getLastLogInstant();
    dataFactory.flush(flushLogTo);

    if (flushLogTo != null)
        {         
      clearLastLogInstant();
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.