Преглед на файлове

fix(cache): advance catalyst cache format

y9522 преди 2 седмици
родител
ревизия
9b8137b365
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      Sunrise/src/state/build_data/cache/records/format.h

+ 2 - 1
Sunrise/src/state/build_data/cache/records/format.h

@@ -28,8 +28,9 @@ inline constexpr std::array<char, 8> kCacheMagic{'S', 'U', 'N', 'R', 'I', 'S', '
  * Current build-data cache format. An older cache is rebuilt rather than read.
  * Bump it when a stored shape changes, and when the extraction filling it changes what it writes.
  * A cached row survives a code change, so a corrected walk keeps publishing the old rows.
+ * Development builds wrote formats 46 through 48, so those numbers cannot be reused.
  */
-inline constexpr std::uint32_t kCacheFormatVersion = 45;
+inline constexpr std::uint32_t kCacheFormatVersion = 49;
 /** Signed -1 on disk means there is no equipment slot. */
 inline constexpr std::int8_t kAbsentEquipmentSlot = -1;
 /** The standard 64-bit FNV-1a offset basis starts the payload checksum. */