]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
feat: Allow 256 raw files in result files
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 1 Jul 2026 18:36:42 +0000 (20:36 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 1 Jul 2026 18:36:42 +0000 (20:36 +0200)
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.

src/ccache/core/result.cpp

index 035d85c4ff8c3928bef115ef8dc70e3498cecfc3..f6b7c38278c188805aa76b1c034c84ff304e7961 100644 (file)
@@ -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<uint8_t>();
-  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;