Search in sources :

Example 1 with CheckpointState

use of org.apache.ignite.internal.processors.cache.persistence.CheckpointState in project ignite by apache.

the class CheckpointProgressImpl method transitTo.

/**
 * Changing checkpoint state if order of state is correct.
 *
 * @param newState New checkpoint state.
 */
@Override
public void transitTo(@NotNull CheckpointState newState) {
    CheckpointState state = this.state.get();
    if (state.ordinal() < newState.ordinal()) {
        this.state.compareAndSet(state, newState);
        doFinishFuturesWhichLessOrEqualTo(newState);
    }
}
Also used : CheckpointState(org.apache.ignite.internal.processors.cache.persistence.CheckpointState)

Aggregations

CheckpointState (org.apache.ignite.internal.processors.cache.persistence.CheckpointState)1