Search in sources :

Example 1 with FlushEventOpportunity

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();
    }
}
Also used : MajorFlushEvent(org.neo4j.io.pagecache.tracing.MajorFlushEvent) FlushEventOpportunity(org.neo4j.io.pagecache.tracing.FlushEventOpportunity)

Aggregations

FlushEventOpportunity (org.neo4j.io.pagecache.tracing.FlushEventOpportunity)1 MajorFlushEvent (org.neo4j.io.pagecache.tracing.MajorFlushEvent)1