mirror of
https://github.com/matrix-construct/construct
synced 2024-11-19 00:10:59 +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};
|
size_t nn {0};
|
||||||
|
|
||||||
bool full() const;
|
bool full() const;
|
||||||
|
bool last() const;
|
||||||
bool overfull() const;
|
bool overfull() const;
|
||||||
bool duplicates() const;
|
bool duplicates() const;
|
||||||
size_t childs() const;
|
size_t childs() const;
|
||||||
|
|
|
@ -753,6 +753,7 @@ ircd::m::state::_remove(int8_t &height,
|
||||||
child = _remove(height, txn, key, node, idbuf, pushed);
|
child = _remove(height, txn, key, node, idbuf, pushed);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
/// This function returns a thread_local buffer intended for writing temporary
|
/// This function returns a thread_local buffer intended for writing temporary
|
||||||
|
@ -1071,6 +1072,14 @@ const
|
||||||
return kn > NODE_MAX_KEY;
|
return kn > NODE_MAX_KEY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
ircd::m::state::node::rep::last()
|
||||||
|
const
|
||||||
|
{
|
||||||
|
assert(kn == vn);
|
||||||
|
return kn == 1;
|
||||||
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
ircd::m::state::node::rep::full()
|
ircd::m::state::node::rep::full()
|
||||||
const
|
const
|
||||||
|
|
Loading…
Reference in a new issue