How to avoid data loss??

No, after update the file index gets retransmitted, but the underlying data in db including counters is the same.