mirror of
https://github.com/matrix-construct/construct
synced 2025-01-15 17:16:49 +01:00
ircd::db: Fallback wo/ user equality comparator.
This commit is contained in:
parent
294aec368c
commit
dc5a1554f6
1 changed files with 3 additions and 2 deletions
|
@ -686,8 +686,9 @@ ircd::db::database::comparator::Equal(const Slice &a,
|
|||
const Slice &b)
|
||||
const noexcept
|
||||
{
|
||||
assert(bool(user.equal));
|
||||
return user.equal(slice(a), slice(b));
|
||||
return user.equal?
|
||||
user.equal(slice(a), slice(b)):
|
||||
Compare(a, b) == 0;
|
||||
}
|
||||
|
||||
int
|
||||
|
|
Loading…
Reference in a new issue