Why can't allow dbnum over 64, redis-check-dump command? #1198

tsubasaxZZZ opened this Issue Jul 17, 2013 · 0 comments


None yet

1 participant


I found maybe issue if select DB over 64.
I setting redis.conf 'databases 1000', and I can select 999.
But I run redis-check-dump, error happend.

0x091648f2 - Database number out of range (999)

And I check redis-check-dump.c.
I found below code.

506         if (length > 63) {
507             SHIFT_ERROR(offset[1], "Database number out of range (%d)", length);
508             return e;
509         }

Why max length is 63?

If this issue is bug, I will fix and pull request.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment