package net.openhft.chronicle.queue;

import net.openhft.chronicle.core.threads.EventHandler;
import net.openhft.chronicle.core.threads.HandlerPriority;
import org.jetbrains.annotations.NotNull;

public final class PretouchHandler implements EventHandler {
    private ChronicleQueue queue;

    public PretouchHandler(ChronicleQueue queue) {
        this.queue = queue;
    }

    @Override
    public boolean action() {
        queue.acquireAppender().lazyIndexing(true).pretouch();
        return false;
    }

    @NotNull
    @Override
    public HandlerPriority priority() {
        return HandlerPriority.MONITOR;
    }
}

@@ -451,27 +451,8 @@
 r().
-lazyIndexing(true).
 pret

revert unintended change