aboutsummaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2024-02-02 14:04:15 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2024-02-02 14:55:10 +0000
commit2b5ad6833695e104e45354c5cd726471c15a99a9 (patch)
treee59645999e12b049b06d294034a47bc0d6a8b6a8 /storage
parent1b36ead1a807e8d1fef299915aa8a8afac436fe0 (diff)
Only include what you need
Diffstat (limited to 'storage')
-rw-r--r--storage/src/vespa/storage/bucketdb/bucketdatabase.h1
-rw-r--r--storage/src/vespa/storage/config/distributorconfiguration.cpp1
-rw-r--r--storage/src/vespa/storage/config/distributorconfiguration.h3
-rw-r--r--storage/src/vespa/storage/distributor/distributor_stripe_operation_context.h9
4 files changed, 8 insertions, 6 deletions
diff --git a/storage/src/vespa/storage/bucketdb/bucketdatabase.h b/storage/src/vespa/storage/bucketdb/bucketdatabase.h
index 4ad52697ac1..5fed99cb801 100644
--- a/storage/src/vespa/storage/bucketdb/bucketdatabase.h
+++ b/storage/src/vespa/storage/bucketdb/bucketdatabase.h
@@ -8,7 +8,6 @@
#include "read_guard.h"
#include <vespa/vespalib/util/printable.h>
#include <vespa/storage/bucketdb/bucketinfo.h>
-#include <vespa/document/bucket/bucketid.h>
#include <vespa/vespalib/util/memoryusage.h>
namespace storage {
diff --git a/storage/src/vespa/storage/config/distributorconfiguration.cpp b/storage/src/vespa/storage/config/distributorconfiguration.cpp
index e58e366cea9..018cafa3fb8 100644
--- a/storage/src/vespa/storage/config/distributorconfiguration.cpp
+++ b/storage/src/vespa/storage/config/distributorconfiguration.cpp
@@ -1,5 +1,6 @@
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "distributorconfiguration.h"
+#include <vespa/storage/common/storagecomponent.h>
#include <vespa/storage/config/config-stor-distributormanager.h>
#include <vespa/storage/config/config-stor-visitordispatcher.h>
#include <vespa/document/select/parser.h>
diff --git a/storage/src/vespa/storage/config/distributorconfiguration.h b/storage/src/vespa/storage/config/distributorconfiguration.h
index f259bfd5b52..2b9dc3eefda 100644
--- a/storage/src/vespa/storage/config/distributorconfiguration.h
+++ b/storage/src/vespa/storage/config/distributorconfiguration.h
@@ -2,7 +2,6 @@
#pragma once
#include "replica_counting_mode.h"
-#include <vespa/storage/common/storagecomponent.h>
#include <vespa/vespalib/util/time.h>
namespace vespa::config::content::core::internal {
@@ -12,6 +11,8 @@ namespace vespa::config::content::core::internal {
namespace storage {
+class StorageComponent;
+
class DistributorConfiguration {
public:
DistributorConfiguration(const DistributorConfiguration& other) = delete;
diff --git a/storage/src/vespa/storage/distributor/distributor_stripe_operation_context.h b/storage/src/vespa/storage/distributor/distributor_stripe_operation_context.h
index e9c405ecff3..2109c813014 100644
--- a/storage/src/vespa/storage/distributor/distributor_stripe_operation_context.h
+++ b/storage/src/vespa/storage/distributor/distributor_stripe_operation_context.h
@@ -6,13 +6,14 @@
#include "bucketownership.h"
#include "operation_routing_snapshot.h"
#include <vespa/document/bucket/bucketspace.h>
-#include <vespa/storage/bucketdb/bucketdatabase.h>
-#include <vespa/storage/common/distributorcomponent.h>
#include <vespa/storageapi/defs.h>
-namespace document { class Bucket; }
+namespace document {
+ class Bucket;
+ class DocumentId;
+}
namespace storage::lib { class ClusterStateBundle; }
-
+namespace storage { class DistributorConfiguration; }
namespace storage::distributor {
class PendingMessageTracker;