• Huang Zhw's avatar
    Do not install a file event to send data to rewrite child when parent stop... · cb961d8c
    Huang Zhw authored
    Do not install a file event to send data to rewrite child when parent stop sending diff to child in aof rewrite. (#8767)
    
    In aof rewrite, when parent stop sending data to child, if there is
    new rewrite data, aofChildWriteDiffData write event will be installed.
    Then this event is issued and deletes the file event without do anyting.
    This will happen over and over again until aof rewrite finish.
    
    This bug used to waste a few system calls per excessive wake-up
    (epoll_ctl and epoll_wait) per cycle, each cycle triggered by receiving
    a write command from a client.
    cb961d8c
aof.c 75.6 KB