In the case of a replica client, writes to said replica are using data from the replication backlog * as opposed to it's own internal buffer, this number should keep track of that */
| 3800 | /* In the case of a replica client, writes to said replica are using data from the replication backlog |
| 3801 | * as opposed to it's own internal buffer, this number should keep track of that */ |
| 3802 | unsigned long getClientReplicationBacklogSharedUsage(client *c) { |
| 3803 | return (!(c->flags & CLIENT_SLAVE) || !c->FPendingReplicaWrite() ) ? 0 : g_pserver->master_repl_offset - c->repl_curr_off; |
| 3804 | } |
| 3805 | |
| 3806 | /* This function returns the number of bytes that Redis is |
| 3807 | * using to store the reply still not read by the client. |
no test coverage detected