Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion include/bitcoin/database/impl/primitives/hashmaps.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,14 @@ inline typename CLASS::iterator CLASS::it(const Key& key) const NOEXCEPT
TEMPLATE
inline Link CLASS::allocate(const Link& size) NOEXCEPT
{
return body_.allocate(size);
const auto link = body_.allocate(size);

// A disabled spine is never committed, so its share of the allocation
// completes here (write completion is accounted for each column).
if (!link.is_terminal() && !enabled())
body_.complete(link, size);

return link;
}

TEMPLATE
Expand Down
Loading