diff --git a/db/commitlog/replay_position.hh b/db/commitlog/replay_position.hh index 7f368cf8e8..53bbbd0ecd 100644 --- a/db/commitlog/replay_position.hh +++ b/db/commitlog/replay_position.hh @@ -55,6 +55,10 @@ struct replay_position { template auto describe_type(sstables::sstable_version_types v, Describer f) { return f(id, pos); } + + bool valid() const { + return id != 0 && pos != 0; + } }; class commitlog;