Skip to content

Commit

Permalink
fix dirty buf uninit issue (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
yamingk authored Dec 16, 2023
1 parent 91bea03 commit d7e5f6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class HomestoreConan(ConanFile):
name = "homestore"
version = "4.9.2"
version = "4.9.3"

homepage = "https://github.com/eBay/Homestore"
description = "HomeStore Storage Engine"
Expand Down
4 changes: 4 additions & 0 deletions src/lib/blkalloc/append_blk_allocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ AppendBlkAllocator::AppendBlkAllocator(const BlkAllocConfig& cfg, bool need_form
m_sb->last_append_offset = m_last_append_offset;
m_sb->freeable_nblks = m_freeable_nblks;

for (auto i = 0ul; i < m_dirty_sb.size(); ++i) {
m_dirty_sb[i].is_dirty = false;
}

// for recovery boot, fields will also be recovered from metablks;
}

Expand Down

0 comments on commit d7e5f6f

Please sign in to comment.