fakechris/redis — comment on commit 67b319eddcf98cfdf0a7fc183d14a77e8e7df03d
File:  line 0
By jokea:

if (server.slave_readonly && (c->flags & REDIS_MASTER || c->flags & REDIS_SLAVE) && (cmd->flags & REDIS_CMD_IS_MUTABLE)) {
should be:
if (server.slave_readonly && (server.masterhost != NULL) && (!(c->flags & REDIS_MASTER)) && (cmd->flags & REDIS_CMD_IS_MUTABLE)) {