0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-01 13:18:58 +02:00

ircd:Ⓜ️:state: Add addl rep util; checkpoint remove stub.

This commit is contained in:
Jason Volk 2018-09-05 01:35:01 -07:00
parent ace2a990b5
commit 4067809a9a
2 changed files with 10 additions and 0 deletions

View file

@ -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;

View file

@ -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