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

Config table passed to vshard.router.cfg() is destroyed #46

Closed
Gerold103 opened this issue Jan 17, 2018 · 0 comments
Closed

Config table passed to vshard.router.cfg() is destroyed #46

Gerold103 opened this issue Jan 17, 2018 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Gerold103
Copy link
Collaborator

Author: @racktear
I tried to launch both router and storage on the same node this way:

local vshard_cfg = {
    sharding = {
        { -- replicaset #1
            { uri = 'localhost:3301', name = 'storage_1_a', master = true },
        }
    }
}
vshard.router.cfg(vshard_cfg)
vshard.storage.cfg(vshard_cfg, 'storage_1_a')

But it fails, because the call to vshard.router.cfg destroys the configuration table passed to it.

As a result, I get this:

./vshard/util.lua:41: Sharding config must be array of replicasets
@Gerold103 Gerold103 added the bug Something isn't working label Jan 17, 2018
@Gerold103 Gerold103 self-assigned this Jan 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant