• Binbin's avatar
    BITSET and BITFIELD SET only propagate command when the value changed. (#9403) · 0835f596
    Binbin authored
    In old way, we always increase server.dirty in BITSET and BITFIELD SET.
    Even the command doesn't really change anything. This commit make 
    sure BITSET and BITFIELD SET only increase dirty when the value changed.
    
    Because of that, if the value not changed, some others implications:
    - Avoid adding useless AOF
    - Reduce replication traffic
    - Will not trigger keyspace notifications (setbit)
    - Will not invalidate WATCH
    - Will not sent the invalidation message to the tracking client
    0835f596
bitops.c 42.3 KB