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();
  }
}

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 ( ) ; } }
called by savequeue and peer whenever savedindex or matchindex increases .
