MB-22451: Ensure isBackfillTaskRunning is correctly set 10/73310/10
authorDaniel Owen <owend@couchbase.com>
Fri, 3 Feb 2017 14:33:43 +0000 (14:33 +0000)
committerJim Walker <jim@couchbase.com>
Tue, 14 Feb 2017 13:45:08 +0000 (13:45 +0000)
commit370f70cdfed5f47c4e5075260026996cf7e2dc58
tree3ffaccdafc7891748e66d688e8d0008d1d8a071c
parent2b2cf1be3d60e32244086572bd0c835fc3ae2dd1
MB-22451: Ensure isBackfillTaskRunning is correctly set

In ActiveStream::completeBackfill if in STREAM_BACKFILLING state and
pendingBackfill is true then we will schedule another backfill.  This
will cause isBackfillTaskRunning to be set to true.  The flag should
remain true on exit of the completeBackfill function.

Change-Id: If8219a7f87b65af46d37a800eebf2257917cc555
Reviewed-on: http://review.couchbase.org/73310
Well-Formed: Build Bot <build@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Jim Walker <jim@couchbase.com>
src/dcp/stream.cc
src/dcp/stream.h
tests/mock/mock_stream.h [new file with mode: 0644]
tests/module_tests/dcp_test.cc
tests/module_tests/evp_store_single_threaded_test.cc
tests/module_tests/evp_store_test.cc
tests/module_tests/evp_store_test.h