From 14550f376b0966c402b82052abeefe8eebf1f355 Mon Sep 17 00:00:00 2001 From: Yaming Kuang Date: Wed, 18 Oct 2023 15:02:39 -0700 Subject: [PATCH] fix copilot generated incorrect comment --- src/include/homestore/homestore.hpp | 2 +- src/lib/blkalloc/append_blk_allocator.h | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/include/homestore/homestore.hpp b/src/include/homestore/homestore.hpp index 31acf3f58..c27594a87 100644 --- a/src/include/homestore/homestore.hpp +++ b/src/include/homestore/homestore.hpp @@ -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; diff --git a/src/lib/blkalloc/append_blk_allocator.h b/src/lib/blkalloc/append_blk_allocator.h index 5f1cd768d..1818ab8e8 100644 --- a/src/lib/blkalloc/append_blk_allocator.h +++ b/src/lib/blkalloc/append_blk_allocator.h @@ -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();