Remove unnecessary #include "tasks.h" 98/77498/2
authorDave Rigby <daver@couchbase.com>
Fri, 28 Apr 2017 17:28:36 +0000 (18:28 +0100)
committerDave Rigby <daver@couchbase.com>
Tue, 2 May 2017 10:41:14 +0000 (10:41 +0000)
commit74551d34ab1d00811b622f7205b5881758963b1b
tree79bc03af2ce14cd790548794963f0cba000dfd05
parenta4d9bd281bfdeb950efd762e1a3290e62069b14d
Remove unnecessary #include "tasks.h"

tasks.h is a relatively expensive header to include, as it contains
the definitions of various disjoint Task types, so in turn it includes
a large proportion of ep-engine headers.

However, it is unneessarily included in a large number of places. This
is probably at last in part due to the fact that globaltask.h didn't
used to be it's own header, and hence to get the GlobalTask definition
one needed to include tasks.h

Change-Id: I0971eab4808ce51d470fe061c13796d18b444234
Reviewed-on: http://review.couchbase.org/77498
Reviewed-by: Manu Dhundi <manu@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>
20 files changed:
src/access_scanner.h
src/backfill.h
src/bgfetcher.cc
src/checkpoint_remover.h
src/couch-kvstore/couch-kvstore.h
src/defragmenter.h
src/ep_vb.cc
src/executorpool.h
src/executorthread.h
src/flusher.cc
src/futurequeue.h
src/globaltask.h
src/htresizer.h
src/item_pager.h
src/kv_bucket.cc
src/taskable.h
src/taskqueue.h
src/vbucket.h
tests/module_tests/stats_test.cc
tests/module_tests/vbucket_test.h