MB-11377: Don't rollback to start_seq when snap_start_seq == start_seq

We should never attempt to rollback to the snap_start_seqno when it is
the same as the start_seqno otherwise we risk potentially having the
server response by constantly asking the consumer to rollback to the
same seqno.

Change-Id: Id6a16df2f0e08fdd1bf7abb89f1eeead474310eb
Reviewed-on: http://review.couchbase.org/38154
Reviewed-by: abhinav dangeti <abhinav@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Use cb_assert instead of assert for windows compatibility

Change-Id: I1c2c326f60dd16c595aee22856f53f5b78553e55
Reviewed-on: http://review.couchbase.org/38155
Reviewed-by: abhinav dangeti <abhinav@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Use backfill phase to determine if a stream can be created

Change-Id: I9dd836d7de7bb311aecf4fbe607765409181ae62
Use the real persistence number

Change-Id: Ifb260aeed3b05776f6fc3d73bae20168d3ffcbbe
Make sure we update the last persited seqno properly

Change-Id: Ie975dae49d5271f31ba7ee48fdb9e06e30eeb8ae