Skip to content

Commit

Permalink
change comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonYao287 committed Sep 21, 2023
1 parent f529421 commit 5d88562
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/lib/homestore/heap_chunk_selector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ void HeapChunkSelector::mark_chunk_selected(const uint16_t chunkID) {
auto& heap = m_per_dev_heap[pdevID]->m_heap;
std::vector< VChunk > temp;
std::lock_guard< std::mutex > l(heapLock);
// after add copy constructor of VChunk in homestore, we can change the following code
for (; !heap.empty();) {
VChunk vchunk = heap.top();
heap.pop();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/homestore/heap_chunk_selector.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class HeapChunkSelector : public homestore::ChunkSelector {
void release_chunk(const uint16_t);

// homestore will initialize HeapChunkSelector by adding all the chunks. but some of them are already
// selected by open shards. so after homeobject restarts, we need to mark all the chunks as selected
// selected by open shards. so after homeobject restarts, we need to mark all these chunks as selected
void mark_chunk_selected(const uint16_t);

private:
Expand Down

0 comments on commit 5d88562

Please sign in to comment.