When I look at the cluster source code, I notice there is one function named: void restoreCommand(client *c) the command RESTORE-ASKING call it, but I do not find how this function is called, no other function or action call it? someone know it ? Thanks a lot.

Comment From: judeng

restore-asking is called in migrate command, please see code

        if (server.cluster_enabled)
            serverAssertWithInfo(c,NULL,
                rioWriteBulkString(&cmd,"RESTORE-ASKING",14));
        else
            serverAssertWithInfo(c,NULL,rioWriteBulkString(&cmd,"RESTORE",7));

Comment From: hwware

Thanks @judeng , I will take a look.