Skip to content
Merged
Show file tree
Hide file tree
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
12 changes: 12 additions & 0 deletions include/bitcoin/database/impl/query/query.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,18 @@ bool CLASS::is_coalesced() const NOEXCEPT
return get_fork() == get_top_candidate();
}

TEMPLATE
bool CLASS::is_pooling() const NOEXCEPT
{
return store_.is_pooling();
}

TEMPLATE
void CLASS::set_pooling() NOEXCEPT
{
store_.set_pooling();
}

TEMPLATE
size_t CLASS::get_space() const NOEXCEPT
{
Expand Down
4 changes: 4 additions & 0 deletions include/bitcoin/database/query.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ class query
/// True if candidate top is fork point header.
bool is_coalesced() const NOEXCEPT;

/// Transaction pooling is enabled (one way latch).
bool is_pooling() const NOEXCEPT;
void set_pooling() NOEXCEPT;

/// Get the space required to clear the disk full condition.
size_t get_space() const NOEXCEPT;

Expand Down
Loading