Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash after SWAPDB command #285

Closed
everythings-gonna-be-alright opened this issue Jan 26, 2021 · 2 comments
Closed

Crash after SWAPDB command #285

everythings-gonna-be-alright opened this issue Jan 26, 2021 · 2 comments

Comments

@everythings-gonna-be-alright
Copy link

Describe the bug
KeyDB immediately stops after SWAPDB command

Log Files

redis-issue λ docker run -v $PWD:/data --name keydb -d eqalpha/keydb:alpine_x86_64_v6.0.16
60ea166f5a30963be8353d77e6d54582b8614d5735c1a1d9e6130248075e424a
redis-issue λ docker exec -ti keydb ash
/data # keydb-cli 
Message of the day:
  Join the KeyDB community! https://community.keydb.dev/

127.0.0.1:6379> INFO keyspace
# Keyspace
127.0.0.1:6379> SET test 1
OK
127.0.0.1:6379> SET test2 2
OK
127.0.0.1:6379> SET test3 3
OK
127.0.0.1:6379> INFO keyspace
# Keyspace
db0:keys=3,expires=0,avg_ttl=0
127.0.0.1:6379> SWAPDB 0 8
OK
127.0.0.1:6379> INFO keyspace
# Keyspace
db8:keys=3,expires=0,avg_ttl=0
127.0.0.1:6379> SWAPDB 8 0
redis-issue λ 
@JohnSully
Copy link
Collaborator

Hey @everythings-gonna-be-alright this is timely, I ran into this during the most recent Redis merge. Will be a fix incoming shortly.

@JohnSully
Copy link
Collaborator

Thanks @daidaotong for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants