MB-21428: Make sure all tasks in fake executor pool finish execution in teardown 68/68968/2
authorManu Dhundi <manu@couchbase.com>
Wed, 19 Oct 2016 23:11:09 +0000 (16:11 -0700)
committerDave Rigby <daver@couchbase.com>
Thu, 20 Oct 2016 08:45:45 +0000 (08:45 +0000)
commite5f0f9d859808fee6885f786f69e13a62e5b3568
tree9f4526e0bdb76732d1a6cf63c5702e751c46b29d
parent08386b63b941effcf4a30f5db1fc57f92d934cf8
MB-21428: Make sure all tasks in fake executor pool finish execution in teardown

It is not sufficient to just run all tasks in future and ready queues while
shutdown, we also need to make sure they finish before delete
EventuallyPersistentEngine instance.

Change-Id: I658a2176b6f4a99beacbc8dd2e010b93c4480eaa
Reviewed-on: http://review.couchbase.org/68968
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Jim Walker <jim@couchbase.com>
tests/module_tests/evp_store_single_threaded_test.cc