APISonar


org.apache.ignite.internal.pagemem.wal.IgniteWriteAheadLogManager.log

> org > apache > ignite > internal > pagemem > wal > IgniteWriteAheadLogManager > log
org APIs apache APIs ignite APIs internal APIs pagemem APIs wal APIs IgniteWriteAheadLogManager APIs log APIs

Example 1
protected final IgniteWriteAheadLogManager wal;

    protected final long recyclePage(
        long pageId,
        long page,
        long pageAddr,
        Boolean walPlc) throws IgniteCheckedException {
        long rotated = PageIdUtils.rotatePageId(pageId);

        PageIO.setPageId(pageAddr, rotated);

        if (needWalDeltaRecord(pageId, page, walPlc))
            wal.log(new RecycleRecord(grpId, pageId, rotated));

        return rotated;
    }
Example 2
private IgniteWriteAheadLogManager walMgr;

    void beforeReleaseWrite(FullPageId pageId, long ptr, boolean pageWalRec) throws IgniteCheckedException {
        boolean walIsNotDisabled = walMgr != null && !walMgr.disabled(pageId.groupId());
        boolean pageRecOrAlwaysWriteFullPage = walMgr != null && (pageWalRec || walMgr.isAlwaysWriteFullPages());

        if (pageRecOrAlwaysWriteFullPage && walIsNotDisabled)
            walMgr.log(new PageSnapshot(pageId, ptr, pageSize(), realPageSize(pageId.groupId())));
    }