Skip to content

Commit

Permalink
crimson/os/seastore/lba_manager: mark iterator(depth_t) private
Browse files Browse the repository at this point in the history
Signed-off-by: Yingxin Cheng <[email protected]>
  • Loading branch information
cyx1231st committed Aug 30, 2021
1 parent 2d0c00f commit f19a3a8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/crimson/os/seastore/lba_manager/btree/lba_btree.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ class LBABtree {
iterator &operator=(const iterator &) = default;
iterator &operator=(iterator &&) = default;

iterator(depth_t depth) : internal(depth - 1) {}

iterator_fut next(
op_context_t c,
mapped_space_visitor_t *visit=nullptr) const;
Expand Down Expand Up @@ -105,6 +103,7 @@ class LBABtree {

private:
iterator() = default;
iterator(depth_t depth) : internal(depth - 1) {}

friend class LBABtree;
static constexpr uint16_t INVALID = std::numeric_limits<uint16_t>::max();
Expand Down

0 comments on commit f19a3a8

Please sign in to comment.