mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-01 12:36:56 +00:00
Introduce mutation_decorated_key_less_comparator
This commit is contained in:
@@ -111,3 +111,8 @@ size_t
|
||||
mutation::live_row_count(gc_clock::time_point query_time) const {
|
||||
return _p.live_row_count(*_schema, query_time);
|
||||
}
|
||||
|
||||
bool
|
||||
mutation_decorated_key_less_comparator::operator()(const mutation& m1, const mutation& m2) const {
|
||||
return m1.decorated_key().less_compare(*m1.schema(), m2.decorated_key());
|
||||
}
|
||||
|
||||
@@ -50,6 +50,10 @@ private:
|
||||
friend std::ostream& operator<<(std::ostream& os, const mutation& m);
|
||||
};
|
||||
|
||||
struct mutation_decorated_key_less_comparator {
|
||||
bool operator()(const mutation& m1, const mutation& m2) const;
|
||||
};
|
||||
|
||||
using mutation_opt = std::experimental::optional<mutation>;
|
||||
|
||||
inline
|
||||
|
||||
Reference in New Issue
Block a user