fn check_gap_resync(&mut self, prior_max_id: u64)
    {
        debug!("check_gap_resync2: post-GAP resync check ({}/{})", self.ts_ssn_gap, self.tc_ssn_gap);
        if !self.ts_ssn_gap && !self.tc_ssn_gap {
            return;
        }

        let (last_done, id) = match self.transactions.last() {
            Some(tx) => {
                (tx.request_done && tx.response_done, tx.id)
            },
            None => (false, 0),
        };
        if last_done && id > 0 {
            debug!("check_gap_resync2: TX {} is done post-GAP, mark all older ones complete", id);
            self.ts_ssn_gap = false;
            self.tc_ssn_gap = false;
            self.close_non_file_txs(prior_max_id);
        }
    }
/* if we have marked the ssn as 'gapped' we check to see if
     * we've caught up. The check is to see if we have the last
     * tx in our list is done. This means we've seen both sides
     * and we're back in sync. Mark older txs as 'done' */
if we have marked the ssn as 'gapped' we check to see if
we've caught up. The check is to see if we have the last
tx in our list is done. This means we've seen both sides
and we're back in sync. Mark older txs as 'done'
if we have marked the ssn as ' gapped ' we check to see if we ' ve caught up . The check is to see if we have the last tx in our list is done . This means we ' ve seen both sides and we ' re back in sync . Mark older txs as ' done '
fn check_gap_resync(&mut self, prior_max_id: u64)
    {
        debug!("check_gap_resync2: post-GAP resync check ({}/{})", self.ts_ssn_gap, self.tc_ssn_gap);
        if !self.ts_ssn_gap && !self.tc_ssn_gap {
            return;
        }
        let (last_done, id) = match self.transactions.last() {
            Some(tx) => {
                (tx.request_done && tx.response_done, tx.id)
            },
            None => (false, 0),
        };
        if last_done && id > 0 {
            debug!("check_gap_resync2: TX {} is done post-GAP, mark all older ones complete", id);
            self.ts_ssn_gap = false;
            self.tc_ssn_gap = false;
            self.close_non_file_txs(prior_max_id);
        }
    }
fn check_gap_resync ( & mut self , prior_max_id : u64 ) { debug ! ( " " self ts_ssn_gap self tc_ssn_gap ) ; if ! self . ts_ssn_gap && ! self . tc_ssn_gap { return ; } let ( last_done , id ) = match self . transactions . last ( ) { Some ( tx ) => { ( tx . request_done && tx . response_done , tx . id ) } , None => ( false , 0 ) , } ; if last_done && id > 0 { debug ! ( " " id ) ; self . ts_ssn_gap = false ; self . tc_ssn_gap = false ; self . close_non_file_txs ( prior_max_id ) ; } }
if we have marked the ssn as 'gapped' we check to see if
 we've caught up.
if we have marked the ssn as ' gapped ' we check to see if we ' ve caught up .
&mut self
prior_max_id
u64
&mut self
prior_max_id
u64