Factored out the code to determine a) whether a snapshot is valid and b) list of logs that are older than a given snapshot