Add check to add to retentionsV2 only in case the format is protoV2.
Add check to add to retentionsV2 only in case the format is
protoV2.

lomik/go-carbon,lomik/go-carbon,lomik/go-carbon,deniszh/go-carbon,deniszh/go-carbon,deniszh/go-carbon