db::replay_position: Add attribute valid()

Just to reduce the rp == db::replay_position() statements...
This commit is contained in:
Calle Wilund
2026-05-12 10:14:22 +02:00
parent db89f3f095
commit bf445d97e5

View File

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