You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kvrocks.apache.org by al...@apache.org on 2024/05/24 07:48:38 UTC
(kvrocks) 01/01: Update check_consistency.py
This is an automated email from the ASF dual-hosted git repository.
aleksraiden pushed a commit to branch aleksraiden-patch-hmset-test
in repository https://gitbox.apache.org/repos/asf/kvrocks.git
commit 032790c7b6e5cc21a5578eaa538019e6da181543
Author: Aleks Lozovyuk <al...@gmail.com>
AuthorDate: Fri May 24 10:48:33 2024 +0300
Update check_consistency.py
---
utils/kvrocks2redis/tests/check_consistency.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/utils/kvrocks2redis/tests/check_consistency.py b/utils/kvrocks2redis/tests/check_consistency.py
index 3a176cc8..59c87027 100644
--- a/utils/kvrocks2redis/tests/check_consistency.py
+++ b/utils/kvrocks2redis/tests/check_consistency.py
@@ -100,7 +100,7 @@ class RedisComparator:
self.src_cli.incr(incr_key)
hash_key = f'hash_key_{i}'
hash_value = {'field1': f'field1_value_{i}', 'field2': f'field2_value_{i}'}
- self.src_cli.hmset(hash_key, hash_value)
+ self.src_cli.hset(hash_key, hash_value)
set_key = f'set_key_{i}'
set_value = [f'set_value_{i}_1', f'set_value_{i}_2', f'set_value_{i}_3']
self.src_cli.sadd(set_key, *set_value)
@@ -129,4 +129,4 @@ if __name__ == '__main__':
args = parser.parse_args()
redis_comparator = RedisComparator(args.src_host, args.src_port, args.src_password, args.dst_host, args.dst_port, args.dst_password)
- redis_comparator.compare_redis_data(args.key_file)
\ No newline at end of file
+ redis_comparator.compare_redis_data(args.key_file)