detect redis turned slave