redisfailovermaster-slave

Understanding SLAVEOF command to change redis slave to master


I want to change my redis slave to master so I read about SLAVEOF. But I don't understand this line:

"The form SLAVEOF NO ONE will stop replication, turning the server into a MASTER, but will not discard the replication"


Solution

  • I believe that the following edit will help you understand:

    The form SLAVEOF NO ONE will stop replication, turning the server into a MASTER, but will not discard the replicated data