php/WP_CLI/Iterators/Query.php
private function adjust_offset_for_shrinking_result_set() {
		if ( empty( $this->count_query ) ) {
			return;
		}

		$row_count = $this->db->get_var( $this->count_query );

		if ( $row_count < $this->row_count ) {
			$this->offset -= $this->row_count - $row_count;
		}

		$this->row_count = $row_count;
	}
private function adjust_offset_for_shrinking_result_set() {
		if ( empty( $this->count_query ) ) {
			return;
		}

		$row_count = $this->db->get_var( $this->count_query );

		if ( $row_count < $this->row_count ) {
			$this->offset -= $this->row_count - $row_count;
		}

		$this->row_count = $row_count;
	}
private function adjust_offset_for_shrinking_result_set ( ) { if ( empty ( $ this -> count_query ) ) { return ; } $ row_count = $ this -> db -> get_var ( $ this -> count_query ) ; if ( $ row_count < $ this -> row_count ) { $ this -> offset -= $ this -> row_count - $ row_count ; } $ this -> row_count = $ row_count ; }
Reduces the offset when the query row count shrinks

In cases where the iterated rows are being updated such that they will no
longer be returned by the original query, the offset must be reduced to
iterate over all remaining rows.
Reduces the offset when the query row count shrinks