Skip to content

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

Closed

Description

@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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions