• antirez's avatar
    PSYNC2: discard pending transactions from cached master. · 6bc6bd4c
    antirez authored
    During the review of the fix for #3899, @yangsiran identified an
    implementation bug: given that the offset is now relative to the applied
    part of the replication log, when we cache a master, the successive
    PSYNC2 request will be made in order to *include* the transaction that
    was not completely processed. This means that we need to discard any
    pending transaction from our replication buffer: it will be re-executed.
    6bc6bd4c
replication.c 106 KB