diff --git a/cql3/update_parameters.hh b/cql3/update_parameters.hh index 9a4972d9ca..aad3a8dbc5 100644 --- a/cql3/update_parameters.hh +++ b/cql3/update_parameters.hh @@ -154,6 +154,14 @@ public: } #endif + gc_clock::duration ttl() const { + return _ttl.count() > 0 ? _ttl : _schema->default_time_to_live(); + } + + gc_clock::time_point expiry() const { + return ttl() + _local_deletion_time; + } + api::timestamp_type timestamp() const { return _timestamp; }