Drop the outdated script replication example comments (#951)

This example was for script replication which we have
completely removed in 7.0, so this example is outdated now.

Signed-off-by: Binbin <binloveplay1314@qq.com>
This commit is contained in:
Binbin 2024-08-27 12:04:47 +08:00 committed by GitHub
parent d66a06e818
commit 694246cfab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -591,12 +591,9 @@ void afterErrorReply(client *c, const char *s, size_t len, int flags) {
/* Sometimes it could be normal that a replica replies to a primary with
* an error and this function gets called. Actually the error will never
* be sent because addReply*() against primary clients has no effect...
* A notable example is:
*
* EVAL 'redis.call("incr",KEYS[1]); redis.call("nonexisting")' 1 x
*
* Where the primary must propagate the first change even if the second
* will produce an error. However it is useful to log such events since
* It can happen when the versions are different and replica cannot recognize
* the commands sent by the primary. However it is useful to log such events since
* they are rare and may hint at errors in a script or a bug in the server. */
int ctype = getClientType(c);
if (ctype == CLIENT_TYPE_PRIMARY || ctype == CLIENT_TYPE_REPLICA || c->id == CLIENT_ID_AOF) {