/*-
 * See the file LICENSE for redistribution information.
 *
 * Copyright (c) 2002,2010 Oracle.  All rights reserved.
 *
 * $Id: INLogItem.java,v 1.1.2.2 2010/01/04 15:30:36 cwl Exp $
 */

package com.sleepycat.je.tree;

import com.sleepycat.je.log.LogItem;

/**
 * Extends LogItem to add fields used by IN.beforeLog and afterLog methods.
 */
public class INLogItem extends LogItem {
    
    /**
     * Parent IN of IN to be logged, or null for the root IN.  Used to count
     * utilization for provisional logging.
     *
     * Set by caller.
     */
    public IN parent = null;

    /**
     * Index of parent slot for IN to be logged.  Used to identify and update
     * the slot.
     *
     * Set by caller.
     */
    public int parentIndex = -1;

    /* Fields used internally by beforeLog and afterLog methods. */
    boolean isDelta = false;
}
