mirror of
https://github.com/matrix-construct/construct
synced 2024-12-25 23:14:13 +01:00
ircd:Ⓜ️:state: Add addl rep util; checkpoint remove stub.
This commit is contained in:
parent
ace2a990b5
commit
4067809a9a
2 changed files with 10 additions and 0 deletions
|
@ -198,6 +198,7 @@ struct ircd::m::state::node::rep
|
|||
size_t nn {0};
|
||||
|
||||
bool full() const;
|
||||
bool last() const;
|
||||
bool overfull() const;
|
||||
bool duplicates() const;
|
||||
size_t childs() const;
|
||||
|
|
|
@ -753,6 +753,7 @@ ircd::m::state::_remove(int8_t &height,
|
|||
child = _remove(height, txn, key, node, idbuf, pushed);
|
||||
});
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
/// This function returns a thread_local buffer intended for writing temporary
|
||||
|
@ -1071,6 +1072,14 @@ const
|
|||
return kn > NODE_MAX_KEY;
|
||||
}
|
||||
|
||||
bool
|
||||
ircd::m::state::node::rep::last()
|
||||
const
|
||||
{
|
||||
assert(kn == vn);
|
||||
return kn == 1;
|
||||
}
|
||||
|
||||
bool
|
||||
ircd::m::state::node::rep::full()
|
||||
const
|
||||
|
|
Loading…
Reference in a new issue