use of org.neo4j.io.pagecache.tracing.FlushEventOpportunity in project neo4j by neo4j.
the class MuninnPageCache method flushAllPages.
private void flushAllPages(IOLimiter limiter) throws IOException {
try (MajorFlushEvent cacheFlush = pageCacheTracer.beginCacheFlush()) {
FlushEventOpportunity flushOpportunity = cacheFlush.flushEventOpportunity();
FileMapping fileMapping = mappedFiles;
while (fileMapping != null) {
fileMapping.pagedFile.flushAndForceInternal(flushOpportunity, false, limiter);
fileMapping = fileMapping.next;
}
syncDevice();
}
}
Aggregations