Fix LinearSortedStringSet::SplitElement::Equal() when the split points differ.

When a.prefix() was shorter than b.prefix(), the first branch compared
the first two parts with != instead of ==. So two equal sets whose
elements were split at different points could compare as not equal,
and a == b could differ from b == a, while the ordering and the hash
said that the sets are equal. This happens for equal
ChunkedSortedStringSets with different chunk sizes (for example a set
decoded from chunks of 16 against a set built with chunks of 32), and
for LinearSortedStringSets with different stored shared lengths. The
other two branches already use ==.

PiperOrigin-RevId: 1031870473
1 file changed
tree: d191392affd4a24c42bd806694d63a3a5b70799d
  1. .github/
  2. doc/
  3. python/
  4. riegeli/
  5. tf_dependency/
  6. .bazelrc
  7. configure
  8. CONTRIBUTING.md
  9. LICENSE
  10. MANIFEST.in
  11. MODULE.bazel
  12. README.md
README.md

Riegeli

Riegeli/records is a file format for storing a sequence of string records, typically serialized protocol buffers. It supports dense compression, fast decoding, seeking, detection and optional skipping of data corruption, filtering of proto message fields for even faster decoding, and parallel encoding.

See documentation.

Status

Riegeli file format will only change in a backward compatible way (i.e. future readers will understand current files, but current readers might not understand files using future features).

Riegeli C++ API might change in incompatible ways.