From: Joel Rosdahl Date: Wed, 1 Jul 2026 18:36:42 +0000 (+0200) Subject: feat: Allow 256 raw files in result files X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19a0f9faa4bc73ccd4518ec203fc6966017e96b8;p=thirdparty%2Fccache.git feat: Allow 256 raw files in result files d34019c4a4d7e9917be08129e079df3d7b50399a ("feat: Remove R/M suffix from files in local storage") changed the filename encoding of raw files to handle up to 256 files, so adjust accordingly. --- diff --git a/src/ccache/core/result.cpp b/src/ccache/core/result.cpp index 035d85c4..f6b7c382 100644 --- a/src/ccache/core/result.cpp +++ b/src/ccache/core/result.cpp @@ -78,8 +78,6 @@ const uint8_t k_embedded_file_marker = 0; // File stored as-is in the file system. const uint8_t k_raw_file_marker = 1; -const uint8_t k_max_raw_file_entries = 10; - bool should_store_raw_file(const Config& config, core::result::FileType type) { @@ -197,15 +195,7 @@ Deserializer::visit(Deserializer::Visitor& visitor) const header.format_version, k_format_version)); } - header.n_files = reader.read_int(); - if (header.n_files >= k_max_raw_file_entries) { - visitor.on_header(header); - throw Error(FMT("Too many raw file entries: {} > {}", - header.n_files, - k_max_raw_file_entries)); - } - visitor.on_header(header); uint8_t file_number;