]> git.ipfire.org Git - thirdparty/ccache.git/commit
fix: Correct entry_size field for result entries
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 17 Nov 2021 15:47:41 +0000 (16:47 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 17 Nov 2021 19:13:56 +0000 (20:13 +0100)
commit6851ca2ead1e11fa8653d7529f2d9ff0e76a2c46
tree2e4ab5d91895adf0af41bfa34f0f9ad0ca5599bc
parent437efe247bfc08cb40ad8d7d3571810a5f84c11d
fix: Correct entry_size field for result entries

The entry_size field in result entries created by ccache 4.5 are off by
one. Fix this by properly accounting for the new format_ver field in
result payload data.

Note: This bug only affects the recompression feature (-X/--recompress)
and not other ccache usage.

Closes #965.

(cherry picked from commit 1a165e7d94443e0a2e4c2f83c1411ddee980bc64)
src/Result.cpp