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

codis-admin --slot-status json error:unsurpport type map[][string] #1078

Closed
XMAN-WOMBAT opened this issue Dec 9, 2016 · 5 comments
Closed

Comments

@XMAN-WOMBAT
Copy link

你好!
在使用codis-admin进行操作时
o xwlg jxu6ok2_zlox
,报如下信息:
45e8d dsn w4 5ay 5hjm 7

@spinlock
Copy link
Member

spinlock commented Dec 9, 2016

不存在这个问题。你编译环境以及运行的版本是什么?

@XMAN-WOMBAT
Copy link
Author

go 1.5.2
centos7
codis版本3.1,是前面几天下载的

@spinlock
Copy link
Member

spinlock commented Dec 9, 2016

这应该是 go1.5 的问题。建议你升级一下 golang 吧。至少 go1.7.[3,4] 是没问题的。

@spinlock
Copy link
Member

@XMAN-WOMBAT 解决了吗?issue 可以关闭了么

@spinlock
Copy link
Member

spinlock commented Dec 15, 2016

go1.6 也有这个问题。

应该是 go1.7 把 map[int]string 会 encode 成 map[string]string,帮我规避这个问题。
而实际上 json 是不支持 map[int]string 的,所以其实这应该是我的问题。

@spinlock spinlock reopened this Dec 15, 2016
spinlock added a commit that referenced this issue Dec 15, 2016
    json doesn't support map[int]string, using map[string]string instead
anywhy added a commit to anywhy/codis that referenced this issue Dec 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants