Send a REPLCONF ACK command to the master to inform it about the current * processed offset. If we are not connected with a master, the command has * no effects. */
| 2863 | * processed offset. If we are not connected with a master, the command has |
| 2864 | * no effects. */ |
| 2865 | void replicationSendAck(void) { |
| 2866 | client *c = server.master; |
| 2867 | |
| 2868 | if (c != NULL) { |
| 2869 | c->flags |= CLIENT_MASTER_FORCE_REPLY; |
| 2870 | addReplyArrayLen(c,3); |
| 2871 | addReplyBulkCString(c,"REPLCONF"); |
| 2872 | addReplyBulkCString(c,"ACK"); |
| 2873 | addReplyBulkLongLong(c,c->reploff); |
| 2874 | c->flags &= ~CLIENT_MASTER_FORCE_REPLY; |
| 2875 | } |
| 2876 | } |
| 2877 | |
| 2878 | /* ---------------------- MASTER CACHING FOR PSYNC -------------------------- */ |
| 2879 |
no test coverage detected