We were performing shallow clones of spans, which is not sufficient
when the spans come from a FragmentIterator.
sstable: wrap raw fragment iterators with checkers
This change wraps raw range del and range key iterators with
assertIter and invalidatingIter and we fix a few cases of using
stale values (especially Prefix/Value for range keys).
keyspan: copy Suffix/Value in CopyFrom
tool: use DeepClone instead of ShallowClone
We were performing shallow clones of spans, which is not sufficient when the spans come from a FragmentIterator.
sstable: wrap raw fragment iterators with checkers
This change wraps raw range del and range key iterators with
assertIter
andinvalidatingIter
and we fix a few cases of using stale values (especially Prefix/Value for range keys).