Skip to content

Commit eae119e

Browse files
committed
Minimise includes of kv_bucket.h
Change-Id: I489b23efe69e44db51602a52d4e01f275959034b Reviewed-on: http://review.couchbase.org/113438 Tested-by: Build Bot <[email protected]> Reviewed-by: Richard de Mellow <[email protected]>
1 parent 29e81ae commit eae119e

30 files changed

+61
-16
lines changed

engines/ep/benchmarks/access_scanner_bench.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
#include "engine_fixture.h"
3030
#include "item.h"
31+
#include "kv_bucket.h"
3132

3233
class AccessLogBenchEngine : public EngineFixture {
3334
protected:

engines/ep/benchmarks/vbucket_bench.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@
2222
#include "benchmark_memory_tracker.h"
2323
#include "checkpoint_manager.h"
2424
#include "engine_fixture.h"
25+
#include "ep_bucket.h"
2526
#include "fakes/fake_executorpool.h"
2627
#include "item.h"
28+
#include "kv_bucket.h"
2729
#include "stored_value_factories.h"
2830

2931
#include "../tests/module_tests/thread_gate.h"

engines/ep/src/monotonic.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <limits>
2222
#include <stdexcept>
2323
#include <string>
24+
#include <typeinfo>
2425

2526
/// Policy class for handling non-monotonic updates by simply ignoring them.
2627
template <class T>

engines/ep/src/vbucket_queue_item_ctx.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
#include <boost/variant.hpp>
2121
#include <memcached/durability_spec.h>
2222

23+
class PreLinkDocumentContext;
24+
2325
/**
2426
* Structure which holds the information needed when enqueueing an item which
2527
* has Durability requirements.

engines/ep/tests/mock/mock_synchronous_ep_engine.cc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@
2121
#include "checkpoint_remover.h"
2222
#include "dcp/dcpconnmap.h"
2323
#include "dcp/flow-control-manager.h"
24+
#include "mock_ep_bucket.h"
25+
#include "mock_ephemeral_bucket.h"
2426
#include "replicationthrottle.h"
25-
#include <programs/engine_testapp/mock_server.h>
26-
2727
#include <platform/cbassert.h>
28+
#include <programs/engine_testapp/mock_server.h>
2829
#include <string>
2930

3031
SynchronousEPEngine::SynchronousEPEngine(std::string extra_config)
@@ -113,3 +114,8 @@ std::unique_ptr<KVBucket> SynchronousEPEngine::public_makeMockBucket(
113114
" is not a recognized bucket "
114115
"type");
115116
}
117+
118+
std::unique_ptr<KVBucket> SynchronousEPEngine::public_makeBucket(
119+
Configuration& config) {
120+
return makeBucket(config);
121+
}

engines/ep/tests/mock/mock_synchronous_ep_engine.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@
1717

1818
#pragma once
1919

20-
#include "mock_ep_bucket.h"
21-
#include "mock_ephemeral_bucket.h"
22-
2320
#include <dcp/dcpconnmap.h>
24-
#include <ep_bucket.h>
2521
#include <ep_engine.h>
2622

2723
class SynchronousEPEngine;
@@ -73,9 +69,7 @@ class SynchronousEPEngine : public EventuallyPersistentEngine {
7369
*/
7470
void initializeConnmap();
7571

76-
std::unique_ptr<KVBucket> public_makeBucket(Configuration& config) {
77-
return makeBucket(config);
78-
}
72+
std::unique_ptr<KVBucket> public_makeBucket(Configuration& config);
7973

8074
std::unique_ptr<KVBucket> public_makeMockBucket(Configuration& config);
8175

engines/ep/tests/module_tests/checkpoint_remover_test.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#pragma once
2323

2424
#include "checkpoint.h"
25+
#include "ep_bucket.h"
2526
#include "evp_store_single_threaded_test.h"
2627
#include "evp_store_test.h"
2728

engines/ep/tests/module_tests/checkpoint_test.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "ep_types.h"
2727
#include "ep_vb.h"
2828
#include "failover-table.h"
29+
#include "kv_bucket.h"
2930
#include "tests/module_tests/test_helpers.h"
3031
#include "thread_gate.h"
3132

engines/ep/tests/module_tests/collections/collections_dcp_test.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "tests/module_tests/collections/collections_dcp_test.h"
1919
#include "checkpoint_manager.h"
2020
#include "dcp/response.h"
21+
#include "kv_bucket.h"
2122
#include "programs/engine_testapp/mock_server.h"
2223
#include "tests/mock/mock_dcp.h"
2324
#include "tests/mock/mock_dcp_consumer.h"

engines/ep/tests/module_tests/collections/collections_dcp_test.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
#pragma once
1919

20+
#include "collections/kvstore.h"
2021
#include "tests/mock/mock_dcp.h"
2122
#include "tests/module_tests/collections/test_manifest.h"
2223
#include "tests/module_tests/evp_store_single_threaded_test.h"

0 commit comments

Comments
 (0)