Today, by default remote segment store support syncing segments from latest metadata file till last refresh point.
For Snapshot Interoperability with Remote Store Project, During snapshot restore operation, we need a way to sync segments from remote segment store using given metadata file (stored in snapshot shard level metadata file) till the last commit point.
For Refresh Operation level support, we create a new segmentInfos file which we use to sync segments from remote repo to local store, instead we can use the original segments_N file which gets created by lucene during commit operation to sync segments. we store that file as well in remote segment store.