From bb23308a59196688cefdcc19fc87c8a3d3e5b737 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Mon, 20 Dec 2021 10:11:24 +0100 Subject: [PATCH] chg: Slight changes in migrate script --- tools/migrate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/migrate.py b/tools/migrate.py index 3d1a34f..7c30744 100644 --- a/tools/migrate.py +++ b/tools/migrate.py @@ -6,7 +6,7 @@ from typing import Set from redis import Redis -redis_src = Redis(unix_socket_path='../storage/storage.sock') +redis_src = Redis(unix_socket_path='../storage/storage.sock', db=0) redis_dst = Redis('127.0.0.1', 5188) chunk_size = 100000 @@ -22,7 +22,7 @@ def process_chunk(src: Redis, dst: Redis, keys: Set[str]): if key_type == b"string": src_pipeline.get(key) elif key_type == b"list": - raise Exception('Lists should not be used.') + raise Exception(f'Lists should not be used: {key}.') elif key_type == b"set": src_pipeline.smembers(key) elif key_type == b"zset":