mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
ircd::db: Support passthru stub for comparator feature.
This commit is contained in:
parent
895c52694e
commit
941b4ff8eb
2 changed files with 9 additions and 0 deletions
|
@ -23,6 +23,7 @@ struct ircd::db::database::comparator final
|
|||
database *d;
|
||||
db::comparator user;
|
||||
|
||||
bool IsSameLengthImmediateSuccessor(const Slice &s, const Slice &t) const noexcept override;
|
||||
void FindShortestSeparator(std::string *start, const Slice &limit) const noexcept override;
|
||||
void FindShortSuccessor(std::string *key) const noexcept override;
|
||||
int Compare(const Slice &a, const Slice &b) const noexcept override;
|
||||
|
|
|
@ -1321,6 +1321,14 @@ const noexcept
|
|||
user.successor(*key);
|
||||
}
|
||||
|
||||
bool
|
||||
ircd::db::database::comparator::IsSameLengthImmediateSuccessor(const Slice &s,
|
||||
const Slice &t)
|
||||
const noexcept
|
||||
{
|
||||
return rocksdb::Comparator::IsSameLengthImmediateSuccessor(s, t);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// database::prefix_transform
|
||||
|
|
Loading…
Reference in a new issue