diff options
Diffstat (limited to 'storage/src/vespa/storage/common/content_bucket_space_repo.h')
-rw-r--r-- | storage/src/vespa/storage/common/content_bucket_space_repo.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/storage/src/vespa/storage/common/content_bucket_space_repo.h b/storage/src/vespa/storage/common/content_bucket_space_repo.h index 142bb5ea1d5..6d8bd67b071 100644 --- a/storage/src/vespa/storage/common/content_bucket_space_repo.h +++ b/storage/src/vespa/storage/common/content_bucket_space_repo.h @@ -43,6 +43,13 @@ public: } } + template <typename Functor> + void for_each_bucket(Functor functor) const { + for (const auto& elem : _map) { + elem.second->bucketDatabase().acquire_read_guard()->for_each(std::move(functor)); + } + } + }; } |