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

Open
tsubasaxZZZ opened this Issue Jul 17, 2013 · 0 comments

Projects

None yet

1 participant

@tsubasaxZZZ

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.

regards.

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