• Binbin's avatar
    Increment the stat_rdb_saves counter in SAVE command (#10827) · ae9764ea
    Binbin authored
    Currently, we only increment stat_rdb_saves in rdbSaveBackground,
    we should also increment it in the SAVE command.
    
    We concluded there's no need to increment when:
    1. saving a base file for an AOF
    2. when saving an empty rdb file to delete an old one
    3. when saving to sockets (not creating a persistence / snapshot file)
    
    The stat counter was introduced in #10178
    
    * fix a wrong comment in startSaving
    ae9764ea
rdb.c 135 KB