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;
}
Aggregations