Bump cache version

This commit is contained in:
Jean Boussier 2024-02-01 17:56:27 +01:00
parent 7c99f37c08
commit 811b34adb8
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ struct bs_cache_key {
STATIC_ASSERT(sizeof(struct bs_cache_key) == KEY_SIZE);
/* Effectively a schema version. Bumping invalidates all previous caches */
static const uint32_t current_version = 5;
static const uint32_t current_version = 6;
/* hash of e.g. "x86_64-darwin17", invalidating when ruby is recompiled on a
* new OS ABI, etc. */

View File

@ -27,7 +27,7 @@ class CompileCacheKeyFormatTest < Minitest::Test
def test_key_version
key = cache_key_for_file(FILE)
exp = [5].pack("L")
exp = [6].pack("L")
assert_equal(exp, key[R[:version]])
end