From fec79ac1478bfd17a02b0ff15d2104ff4ae8be0d Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Mon, 23 Mar 2015 20:13:43 +0200 Subject: [PATCH] cql: introduce update_parameters::make_tombstone_just_before() Addresses a quirk in how collection tombstones are compared vs. cells: a timestamp tie goes to the tombstone. Matches origin. --- cql3/update_parameters.hh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cql3/update_parameters.hh b/cql3/update_parameters.hh index 12aaea13d4..f7ae80372b 100644 --- a/cql3/update_parameters.hh +++ b/cql3/update_parameters.hh @@ -94,6 +94,10 @@ public: return {_timestamp, _local_deletion_time}; } + tombstone make_tombstone_just_before() const { + return {_timestamp, _local_deletion_time - gc_clock::duration(1) }; + } + #if 0 public RangeTombstone makeRangeTombstone(ColumnSlice slice) throws InvalidRequestException {