Examples of preDirty()


Examples of org.apache.derby.iapi.store.raw.data.RawContainerHandle.preDirty()

                            containerHdl, ContainerOperation.DROP);

        // mark the container as pre-dirtied so that if a checkpoint
        // happens after the log record is sent to the log stream, the
        // cache cleaning will wait for this change.
        containerHdl.preDirty(true);
        try
        {
          t.logAndDo(lop);
        }
        finally
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.data.RawContainerHandle.preDirty()

        }
        finally
        {
          // in case logAndDo fail, make sure the container is not
          // stuck in preDirty state.
          containerHdl.preDirty(false);
        }


        // remember this as a post commit work item
        Serviceable p =
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.data.RawContainerHandle.preDirty()

        ContainerOperation(containerHdl, ContainerOperation.REMOVE);

      // mark the container as pre-dirtied so that if a checkpoint
      // happens after the log record is sent to the log stream, the
      // cache cleaning will wait for this change.
      containerHdl.preDirty(true);
      try
      {
        tran.logAndDo(lop);
      }
      finally
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.data.RawContainerHandle.preDirty()

      }
      finally
      {
        // in case logAndDo fail, make sure the container is not
        // stuck in preDirty state.
        containerHdl.preDirty(false);
      }


      containerHdl.close();
      tran.commit();
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.data.RawContainerHandle.preDirty()

          new ContainerOperation(rch, ContainerOperation.CREATE);

        // mark the container as pre-dirtied so that if a checkpoint
        // happens after the log record is sent to the log stream, the
        // cache cleaning will wait for this change.
        rch.preDirty(true);
        try
        {
          t.logAndDo(lop);

          // flush the log to reduce the window between where
View Full Code Here

Examples of org.apache.derby.iapi.store.raw.data.RawContainerHandle.preDirty()

        }
        finally
        {
          // in case logAndDo fail, make sure the container is not
          // stuck in preDirty state.
          rch.preDirty(false);
        }
      }

      firstPage = containerHdl.addPage();
View Full Code Here

Examples of org.apache.derby.impl.store.raw.data.BasePage.preDirty()

    // Needs to pre-dirty this page so that if a checkpoint is taken any
    // time after the CLR is sent to the log stream, it will wait for the
    // actual undo to happen on the page.  We need this to preserve the
    // integrity of the redoLWM.
    undoPage.preDirty();

    return new PhysicalUndoOperation(undoPage, this);
  }

View Full Code Here

Examples of org.apache.derby.impl.store.raw.data.BasePage.preDirty()

      // Needs to pre-dirty this page so that if a checkpoint is taken
      // any time after the CLR is sent to the log stream, it will wait
      // for the actual undo to happen on the page.  We need this to
      // preserve the integrity of the redoLWM.
      undoPage.preDirty();

      return new LogicalUndoOperation(undoPage, recordId, this);
    }
    else
    {
View Full Code Here

Examples of org.apache.derby.impl.store.raw.data.BasePage.preDirty()

      // Needs to pre-dirty this page so that if a checkpoint is taken
      // any time after the CLR is sent to the log stream, it will wait
      // for the actual undo to happen on the page.  We need this to
      // preserve the integrity of the redoLWM.
      logicalUndoPage.preDirty();

      // find logical page is going to call undo.findUndo to find the
      // right page to apply the CLR to.  If the record has changed,
      // logicalUndo should have resetRecordHandle to reset the page
      // number and the recordId to the new record location.  We need to
View Full Code Here

Examples of org.apache.derby.impl.store.raw.data.BasePage.preDirty()

    // Needs to pre-dirty this page so that if a checkpoint is taken any
    // time after the CLR is sent to the log stream, it will wait for the
    // actual undo to happen on the page.  We need this to preserve the
    // integrity of the redoLWM.
    undoPage.preDirty();

    return new PhysicalUndoOperation(undoPage, this);
  }

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.