blob: ca9fb3a45cb653a7dee7e07efa85a8b705fdfdef (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "servicelayercomponent.h"
#include <vespa/storage/common/content_bucket_space_repo.h>
#include <vespa/storage/common/nodestateupdater.h>
#include <vespa/vdslib/distribution/distribution.h>
using document::BucketSpace;
namespace storage {
const ContentBucketSpaceRepo &
ServiceLayerComponent::getBucketSpaceRepo() const
{
assert(_bucketSpaceRepo != nullptr);
return *_bucketSpaceRepo;
}
StorBucketDatabase&
ServiceLayerComponent::getBucketDatabase(BucketSpace bucketSpace) const
{
assert(_bucketSpaceRepo != nullptr);
return _bucketSpaceRepo->get(bucketSpace).bucketDatabase();
}
} // storage
|