Skip to content

Commit

Permalink
fix copilot generated incorrect comment
Browse files Browse the repository at this point in the history
  • Loading branch information
yamingk committed Oct 18, 2023
1 parent adcad2c commit 14550f3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/include/homestore/homestore.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class HomeStore {
HS_SERVICE m_services; // Services homestore is starting with
hs_before_services_starting_cb_t m_before_services_starting_cb{nullptr};

bool init_done{false}
bool m_init_done{false};

public:
HomeStore() = default;
Expand Down
22 changes: 11 additions & 11 deletions src/lib/blkalloc/append_blk_allocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,37 +78,37 @@ class AppendBlkAllocator : public BlkAllocator {
BlkAllocStatus alloc_contiguous(BlkId& bid) override;
BlkAllocStatus alloc(blk_count_t nblks, blk_alloc_hints const& hints, BlkId& out_blkid) override;
void free(BlkId const& b) override;

/**
* @brief : the number of available blocks that can be allocated by the AppendBlkAllocator.
* @return : the number of available blocks.
*/
* @brief : the number of available blocks that can be allocated by the AppendBlkAllocator.
* @return : the number of available blocks.
*/
blk_num_t available_blks() const override;

/**
* @brief : the number of used blocks by the AppendBlkAllocator.
* @return : the number of used blocks.
*/
*/
blk_num_t get_used_blks() const override;

/**
* @brief : the number of freeable blocks by the AppendBlkAllocator.
* @return : the number of freeable blocks.
*/
*/
blk_num_t get_freeable_nblks() const;

/**
* @brief : the number of blocks that have been allocated by the AppendBlkAllocator.
* @return : the number of allocated blocks.
*/
*/
blk_num_t get_defrag_nblks() const;

/**
* @brief : the number of blocks that have been allocated by the AppendBlkAllocator.
* @return : the number of allocated blocks.
*/
* @brief : check if the input blk id is allocated or not.
* @return : true if blkid is allocated, false if not;
*/
bool is_blk_alloced(const BlkId& in_bid, bool use_lock = false) const override;

std::string to_string() const override;

/// @brief : needs to be called with cp_guard();
Expand Down

0 comments on commit 14550f3

Please sign in to comment.