Search in sources :

Example 1 with OWriteAheadLog

use of com.orientechnologies.orient.core.storage.impl.local.paginated.wal.OWriteAheadLog in project orientdb by orientechnologies.

the class OPerformanceStatisticManager method getWriteAheadLog.

/**
 * @return Returns current instance of write ahead log and initializes local reference if such one is not initialized yet.
 */
private ODiskWriteAheadLog getWriteAheadLog() {
    if (writeAheadLogInitialized)
        return writeAheadLog;
    final OWriteAheadLog writeAheadLog = storage.getWALInstance();
    if (writeAheadLog instanceof ODiskWriteAheadLog)
        this.writeAheadLog = (ODiskWriteAheadLog) writeAheadLog;
    else
        this.writeAheadLog = null;
    writeAheadLogInitialized = true;
    return this.writeAheadLog;
}
Also used : ODiskWriteAheadLog(com.orientechnologies.orient.core.storage.impl.local.paginated.wal.ODiskWriteAheadLog) OWriteAheadLog(com.orientechnologies.orient.core.storage.impl.local.paginated.wal.OWriteAheadLog)

Aggregations

ODiskWriteAheadLog (com.orientechnologies.orient.core.storage.impl.local.paginated.wal.ODiskWriteAheadLog)1 OWriteAheadLog (com.orientechnologies.orient.core.storage.impl.local.paginated.wal.OWriteAheadLog)1