Skip to content

Commit 2e8cf2d

Browse files
authored
Merge pull request eBay#865 from raakella1/btree_ut
Fix the append blk allocator reset routine
2 parents ed45a46 + f516232 commit 2e8cf2d

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

conanfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
class HomestoreConan(ConanFile):
1111
name = "homestore"
12-
version = "7.4.1"
12+
version = "7.4.2"
1313

1414
homepage = "https://github.com/eBay/Homestore"
1515
description = "HomeStore Storage Engine"

src/lib/blkalloc/append_blk_allocator.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,9 @@ bool AppendBlkAllocator::is_blk_alloced(const BlkId& in_bid, bool) const {
146146
}
147147

148148
void AppendBlkAllocator::reset() {
149-
m_last_append_offset.store(0);
150-
m_freeable_nblks.store(0);
151-
m_commit_offset.store(0);
152-
m_is_dirty.store(true);
149+
m_is_dirty.store(false);
150+
m_sb.destroy();
151+
meta_service().deregister_handler(get_name());
153152
}
154153

155154
bool AppendBlkAllocator::is_blk_alloced_on_disk(BlkId const& bid, bool) const {

0 commit comments

Comments
 (0)