• Binbin's avatar
    Make sure replicas don't write their own replies to the replication link (#10081) · a1ae260e
    Binbin authored
    The following steps will crash redis-server:
    ```
    [root]# cat crash
    PSYNC replicationid -1
    SLOWLOG GET
    GET key
    [root]# nc 127.0.0.1 6379 < crash
    ```
    
    This one following #10020 and the crash was reported in #10076.
    
    Other changes about the output info:
    1. Cmd with a full name by using `getFullCommandName`, now it will print the right
       subcommand name like `slowlog|get`.
    2. Print the full client info by using `catClientInfoString`, the info is also valuable.:
    a1ae260e
server.h 156 KB