MB-16632: Use a background task to handle snapshot creation 48/57148/17
authorJim Walker <jim@couchbase.com>
Thu, 12 Nov 2015 11:14:11 +0000 (11:14 +0000)
committerChiyoung Seo <chiyoung@couchbase.com>
Fri, 8 Jan 2016 15:59:40 +0000 (15:59 +0000)
commit95694200c812edc38ec1a27ab9dfdb3c8f95eac9
tree689b57f662b8563c7ce7d10e994c12e412ac8da3
parente338e1bb36f11b5916fff01c458687778d774caa
MB-16632: Use a background task to handle snapshot creation

Frontend threads are delayed by large snaphots due to the time taken
in processing the items into the readyQ.

Moving this work to a background task frees frontend threads to
do other work.

Change-Id: Ic399ef06be996b7b7e179c4c8934a0f5a74cb8f7
Reviewed-on: http://review.couchbase.org/57148
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
configuration.json
src/dcp-producer.cc
src/dcp-producer.h
src/dcp-stream.cc
src/dcp-stream.h
src/priority.cc
src/priority.h