hollow/src/main/java/com/netflix/hollow/api/client/HollowUpdatePlanner.java
private long includeNextDelta(HollowUpdatePlan plan, long currentVersion, long desiredVersion) {
        HollowConsumer.Blob transition = transitionCreator.retrieveDeltaBlob(currentVersion);

        if(transition != null) {
            if(transition.getToVersion() <= desiredVersion) {
                plan.add(transition);
            }

            return transition.getToVersion();
        }

        return HollowConstants.VERSION_LATEST;
    }
private long includeNextDelta(HollowUpdatePlan plan, long currentVersion, long desiredVersion) {
        HollowConsumer.Blob transition = transitionCreator.retrieveDeltaBlob(currentVersion);

        if(transition != null) {
            if(transition.getToVersion() <= desiredVersion) {
                plan.add(transition);
            }

            return transition.getToVersion();
        }

        return HollowConstants.VERSION_LATEST;
    }
private long includeNextDelta ( HollowUpdatePlan plan , long currentVersion , long desiredVersion ) { HollowConsumer . Blob transition = transitionCreator . retrieveDeltaBlob ( currentVersion ) ; if ( transition != null ) { if ( transition . getToVersion ( ) <= desiredVersion ) { plan . add ( transition ) ; } return transition . getToVersion ( ) ; } return HollowConstants . VERSION_LATEST ; }
Includes the next delta only if it will not take us *after* the desired version
Includes the next delta only if it will not take us * after * the desired version