use of org.apache.asterix.common.context.PrimaryIndexOperationTracker in project asterixdb by apache.
the class LogBuffer method notifyFlushTermination.
public void notifyFlushTermination() throws ACIDException {
LogRecord logRecord = null;
try {
logRecord = (LogRecord) flushQ.take();
} catch (InterruptedException e) {
//ignore
}
synchronized (logRecord) {
logRecord.isFlushed(true);
logRecord.notifyAll();
}
PrimaryIndexOperationTracker opTracker = logRecord.getOpTracker();
if (opTracker != null) {
try {
opTracker.triggerScheduleFlush(logRecord);
} catch (HyracksDataException e) {
throw new ACIDException(e);
}
}
}
Aggregations