mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-04 22:13:19 +00:00
db::replay_position: Add attribute valid()
Just to reduce the rp == db::replay_position() statements...
This commit is contained in:
@@ -55,6 +55,10 @@ struct replay_position {
|
||||
|
||||
template <typename Describer>
|
||||
auto describe_type(sstables::sstable_version_types v, Describer f) { return f(id, pos); }
|
||||
|
||||
bool valid() const {
|
||||
return id != 0 && pos != 0;
|
||||
}
|
||||
};
|
||||
|
||||
class commitlog;
|
||||
|
||||
Reference in New Issue
Block a user