Examples of OAtomicOperation


Examples of com.orientechnologies.orient.core.storage.impl.local.paginated.atomicoperations.OAtomicOperation

    if (writeAheadLog != null) {
      final OPageChanges pageChanges = localPage.getPageChanges();
      if (pageChanges.isEmpty())
        return;

      final OAtomicOperation atomicOperation = atomicOperationsManager.getCurrentOperation();
      assert atomicOperation != null;

      final OOperationUnitId unitId = atomicOperation.getOperationUnitId();
      final OLogSequenceNumber prevLsn;
      if (isNewPage)
        prevLsn = atomicOperation.getStartLSN();
      else
        prevLsn = localPage.getLsn();

      final OLogSequenceNumber lsn = writeAheadLog.log(new OUpdatePageRecord(pageIndex, fileId, unitId, pageChanges, prevLsn));
      localPage.setLsn(lsn);
View Full Code Here

Examples of com.orientechnologies.orient.core.storage.impl.local.paginated.atomicoperations.OAtomicOperation

    }
  }

  protected void logFileCreation(String fileName, long fileId) throws IOException {
    if (writeAheadLog != null) {
      final OAtomicOperation atomicOperation = atomicOperationsManager.getCurrentOperation();
      assert atomicOperation != null;

      final OOperationUnitId unitId = atomicOperation.getOperationUnitId();
      writeAheadLog.log(new OFileCreatedCreatedWALRecord(unitId, fileName, fileId));
    }
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.storage.impl.local.paginated.atomicoperations.OAtomicOperation

  protected void rollbackStorageTx() throws IOException {
    if (writeAheadLog == null || transaction.get() == null)
      return;

    final OAtomicOperation operation = atomicOperationsManager.endAtomicOperation(true);

    assert atomicOperationsManager.getCurrentOperation() == null;

    final List<OLogSequenceNumber> operationUnit = readOperationUnit(operation.getStartLSN(), operation.getOperationUnitId());
    undoOperation(operationUnit);
  }
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.