• Oran Agra's avatar
    syncWithMaster: use pipeline for AUTH+REPLCONF*3 · e87c31de
    Oran Agra authored
    The commit deals with the syncWithMaster and the ugly state machine in it.
    It attempts to clean it a bit, but more importantly it uses pipeline for
    part of the work (rather than 7 round trips, we now have 4).
    i.e. the connect and PING are separate, then AUTH + 3 REPLCONF in one pipeline,
    and finally the PSYNC (must be separate since the master has to have an empty
    output buffer).
    e87c31de
server.h 121 KB