Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonYao287 committed Sep 11, 2023
1 parent 68d6fd7 commit bf6004f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/include/homestore/vchunk.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ class VChunk {

~VChunk() = default;

void set_user_private(const sisl::blob& data) const;
uint8_t* get_user_private() const;
void set_user_private(const sisl::blob& data);
const uint8_t* get_user_private() const;
blk_cap_t available_blks() const;
uint32_t get_pdev_id() const;
cshared< Chunk > get_internal_chunk () const;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/device/chunk.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Chunk {
uint16_t chunk_id() const { return static_cast< uint16_t >(m_chunk_info.chunk_id); }
uint64_t end_of_chunk() const { return m_chunk_info.end_of_chunk_size; }
uint32_t pdev_ordinal() const { return m_chunk_info.chunk_ordinal; }
uint8_t* user_private() { return &m_chunk_info.user_private[0]; }
const uint8_t* user_private() { return &m_chunk_info.user_private[0]; }
uint32_t stream_id() const { return m_stream_id; }
uint32_t slot_number() const { return m_chunk_slot; }
uint32_t vdev_ordinal() const { return m_vdev_ordinal; }
Expand Down
4 changes: 2 additions & 2 deletions src/lib/device/vchunk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
namespace homestore {
VChunk::VChunk(cshared< Chunk >& chunk) : internalChunk(chunk){}

void VChunk::set_user_private(const sisl::blob& data) const{
void VChunk::set_user_private(const sisl::blob& data){
internalChunk->set_user_private(data);
}

uint8_t* VChunk::get_user_private() const {
const uint8_t* VChunk::get_user_private() const {
return internalChunk->user_private();
};

Expand Down

0 comments on commit bf6004f

Please sign in to comment.