Skip to content

Convert port number to string automatically #107

@ligurio

Description

@ligurio

memcached doesn't accept port number as a Lua number, it forces user to convert it to string explicitly.

tarantool> mc.create('instance_2', 8020, {})
2022-02-17 11:17:58.763 [3263879] main/101/interactive I> Initializing SASL: begin
2022-02-17 11:17:58.765 [3263879] main/101/interactive I> Initializing SASL: done
2022-02-17 11:17:58.766 [3263879] main/112/__mc_instance_2_expire I> Memcached expire fiber started
---
- error: 'builtin/uri.lua:46: bad argument #2 to ''uri_parse'' (cannot convert ''number''
    to ''const char *'')'
...

tarantool> 

I think memcached can do it automatically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions