From d7e5f6f1c6bc3366c97933ea1fb951f3c2c2b405 Mon Sep 17 00:00:00 2001 From: Yaming Kuang <1477567+yamingk@users.noreply.github.com> Date: Fri, 15 Dec 2023 20:18:21 -0800 Subject: [PATCH] fix dirty buf uninit issue (#251) --- conanfile.py | 2 +- src/lib/blkalloc/append_blk_allocator.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/conanfile.py b/conanfile.py index a95fbd349..1d2ad18cb 100644 --- a/conanfile.py +++ b/conanfile.py @@ -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" diff --git a/src/lib/blkalloc/append_blk_allocator.cpp b/src/lib/blkalloc/append_blk_allocator.cpp index eeceb6849..e1084cbd1 100644 --- a/src/lib/blkalloc/append_blk_allocator.cpp +++ b/src/lib/blkalloc/append_blk_allocator.cpp @@ -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; }