MB-10681: Enable generation of mutation logs

Change-Id: I2ef6ebdd401d6e648815ab09ad28329bf0c4f16f
Reviewed-on: http://review.couchbase.org/35117
Tested-by: abhinav dangeti <abhinav@couchbase.com>
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Hold streamMutex whenever we are checking the itemsReady value

Change-Id: I609c6ad6803910979fc7f9aacc82a4e7640e411b
Reviewed-on: http://review.couchbase.org/35119
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Properly set itemsReady if closing stream immediately

Change-Id: I1f62416bc1e305796bf15375e96ca11dde899ca9
Reviewed-on: http://review.couchbase.org/35120
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Properly set paused variable in upr connections

Change-Id: I65756f93bea5fe016bf589eee85d7784f56bc956
Reviewed-on: http://review.couchbase.org/35121
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Don't schedule notifications for backfill, send it immeidiately instead

Since backfills run in a ep-engine thread we can notify the memcached
layer immediately without having to schedule a seperate task.

Change-Id: I75675028e8576c18a832d55b52773d39b8b7419a
Reviewed-on: http://review.couchbase.org/35127
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
MB-10348: Vbucket's purge_seqno available in stats

vbucket-seqno will list 3 stats now:
- vb_x:uuid
- vb_x:high_seqno
- vb_x:purge_seqno

Requires: http://review.couchbase.org/#/c/35062/

Change-Id: Icb501b2d305c5ee1efb3903f8c166ccb986c1c61
Reviewed-on: http://review.couchbase.org/35035
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
Revert "MB-10348: Vbucket's purge_seqno available in stats"

This reverts commit 70670dc64eaabb3300235569a1e0edcb936168e7.

Change-Id: Idf4467f083793e3eaf1e6b097f8822502c13f4d3
Reviewed-on: http://review.couchbase.org/35174
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Make PassiveStream reference counted

This will allow us to find streams in the stream map of a consumer
connection, unlock the lock that we need to hold when looking in
the map and then operating on the stream without the lock.

Change-Id: I45408d07c33f13e7f3a6a35b1bcf922f7e2b633b
Add byte sizes to upr responses

Change-Id: Ic90bffc6ced9a7f9b4c6624289e0eb42e0caaaf6
Refactor consumer processing of items

Still need to:
-- Add a lock for the process queue
-- Fix the set vbucket state ack issue
-- Handle tmp oom cases
-- Request flow control when creating a stream
-- Add buffer acknowledgment logic

Change-Id: I4cffc0ccf17ebf5871d51330277e1fffe8c63497
WIP

Change-Id: I6fd020b2af50bb8075533fcaee4b1a04d760d5cb