question: public void updateCommitIndex ( int index ) { CoreCmd ccmd = getQueue . peek ( ) ; while ( ccmd != null && ccmd . index <= index ) { ccmd . update ( Command . STATUS_OK , cmember . leaderId ) ; getQueue . poll ( ) ; ccmd = getQueue . peek ( ) ; } }
target:  Called by SaveQueue and Peer whenever savedIndex or matchIndex increases.