diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2021-03-23 11:32:04 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2021-03-23 11:39:52 +0100 |
commit | 947670d992454033a13c70e36a53a2ac10b3d6ad (patch) | |
tree | 292c1d8b9dc03a980f8085b0ca0c9cd6e41f7e03 /lib/fstream/internal.h | |
parent | cb8b925130c0ff5cdb445ad36fde47ca4f58e645 (diff) |
block processor: Re-implement exact fragment matching
In the hash-table equals callback, if the hash and size match, do an
exact, byte-for-byte comparison of the fragment in question. The
fragment can either be in a fragment block that is in-flight (for which
we have the in-flight list), in the current, unfinished fragment block,
or it can be on disk.
In the later case, the fragment block is resolved through the fragment
table and read back from disk into a scratch buffer and decompressed.
After that, the fragment is checked for byte-for-byte equality with
the one we resolved through the hash table.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/fstream/internal.h')
0 files changed, 0 insertions, 0 deletions