I'd like to have a mechanism to ensuring that when a new IndexReader is acquired, we will always have oplog files needed to catch up from the last commit in the reader, if we need to make a snapshot of it.
Currently, we truncate oplog when we commit a new file segment. Instead of that, we should have some kind of tracker for the smallest commit ID we need to have oplog entries for.
@claude think about this and propose a solution