MB-21320: Notify memcached to visit readyQ and get any ready items 71/69171/7
authorManu Dhundi <manu@couchbase.com>
Mon, 31 Oct 2016 16:53:18 +0000 (09:53 -0700)
committerManu Dhundi <manu@couchbase.com>
Tue, 1 Nov 2016 21:51:59 +0000 (21:51 +0000)
commit93b5a26c898cc6a342ac45c847edda5bf8d638a3
treedfc2da219ca0e7b0ab1733f40ca79002d44c55a8
parent7cbf6a53ec9887f6ec9809d26c5f6a9569cc25f1
MB-21320: Notify memcached to visit readyQ and get any ready items

We should notify memcached to visit readyQ and get any items that were
pushed there during stream creation. Also, we must notify the memcached
about cursor dropping so that it can visit ep-engine and stream any
pending items and do a subsequent stream state change.

This is not a functional fix. It improves performance however.
It is not absolutely necessary to notify immediately as conn manager
will notify eventually.

Change-Id: Id06fc450a20f6d0258fa7c687520dff5f4899a28
Reviewed-on: http://review.couchbase.org/69171
Reviewed-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Jim Walker <jim@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
configuration.json
src/connmap.cc
src/dcp/producer.cc
src/dcp/stream.cc
tests/ep_testsuite.cc
tests/ep_testsuite_dcp.cc