[5.0] New created document always have REV start at 1250 not 1


My DB upgrade from 4.5 to 5.0 and we notice that all new created document, the REV start with a big number 1250, it should be start with 1. This make the issue with XDCR when replicate data.

Kindly help on where 1250 come from ? and how to change it ?

Thank you.

It’s the highest deleted revID across the bucket; and has been that way since ~2.x.

Note revID isn’t intended to be an absolute count of the number of revisions, only a relative value (i.e. to be able to determine that a doc in XDCR source node has been updated since the doc on the dest node).