diff options
author | Anders Björklund <anders.f.bjorklund@gmail.com> | 2022-01-17 18:23:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-17 18:23:17 +0100 |
commit | ee375390377eaff4f0d37a8e96978f146a3d9399 (patch) | |
tree | 84ec5ea8b58fef45011bb8259ec370f63c8df3b2 /misc/upload-redis | |
parent | 13fcafe31a5d53f138922441d6929f8447fb0c73 (diff) | |
download | ccache-ee375390377eaff4f0d37a8e96978f146a3d9399.tar.gz |
Fix upload-redis after cache entry format change (#973)
Diffstat (limited to 'misc/upload-redis')
-rwxr-xr-x | misc/upload-redis | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/misc/upload-redis b/misc/upload-redis index c91ade38..ff54603f 100755 --- a/misc/upload-redis +++ b/misc/upload-redis @@ -20,9 +20,6 @@ context = redis.Redis( host=host, port=port, unix_socket_path=sock, password=password ) -CCACHE_MANIFEST = b"cCmF" -CCACHE_RESULT = b"cCrS" - ccache = os.getenv("CCACHE_DIR", os.path.expanduser("~/.cache/ccache")) filelist = [] for dirpath, dirnames, filenames in os.walk(ccache): @@ -52,11 +49,6 @@ for mtime, dirpath, filename in filelist: val = open(os.path.join(dirpath, filename), "rb").read() or None if val: print("%s: %s %d" % (key, ext, len(val))) - magic = val[0:4] - if ext == "M": - assert magic == CCACHE_MANIFEST - if ext == "R": - assert magic == CCACHE_RESULT context.set(key, val) objects = objects + 1 files = files + 1 |