{"action":"closed","issue":{"url":"https://api.github.com/repos/wandoulabs/codis/issues/335","labels_url":"https://api.github.com/repos/wandoulabs/codis/issues/335/labels{/name}","comments_url":"https://api.github.com/repos/wandoulabs/codis/issues/335/comments","events_url":"https://api.github.com/repos/wandoulabs/codis/issues/335/events","html_url":"https://github.com/wandoulabs/codis/issues/335","id":98345309,"number":335,"title":"codis-config 可能存在问题","user":{"login":"HonestManXin","id":1614501,"avatar_url":"https://avatars.githubusercontent.com/u/1614501?v=3","gravatar_id":"","url":"https://api.github.com/users/HonestManXin","html_url":"https://github.com/HonestManXin","followers_url":"https://api.github.com/users/HonestManXin/followers","following_url":"https://api.github.com/users/HonestManXin/following{/other_user}","gists_url":"https://api.github.com/users/HonestManXin/gists{/gist_id}","starred_url":"https://api.github.com/users/HonestManXin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HonestManXin/subscriptions","organizations_url":"https://api.github.com/users/HonestManXin/orgs","repos_url":"https://api.github.com/users/HonestManXin/repos","events_url":"https://api.github.com/users/HonestManXin/events{/privacy}","received_events_url":"https://api.github.com/users/HonestManXin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wandoulabs/codis/labels/todo","name":"todo","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-07-31T08:51:54Z","updated_at":"2015-09-10T08:53:03Z","closed_at":"2015-09-10T08:53:03Z","body":"https://github.com/wandoulabs/codis/blob/master/pkg/models/slot.go#L187\r\nset的时候，可能某个slot已经属于一个group，直接进行set而不进行migrate操作会造成用户数据的丢失。\r\n虽说set操作是在用户init之后使用，但是dashboard上存在有该操作，运维同学可能会存在误操作。\r\n所以实现的时候应该加上判断逻辑。"}}