In mongo-rocks, when we set oldestts in force, then modify the comparison method of timestamp compactors to ensure that the comparison of oldest ts must be large,
so that we can skip the check of rocksdb and set FullHistoryTsLow back.
This is a hack modification method, so we need to reduce the scope of hack as much as possible and more invariant judgments.
For this purpose we use thread local to ensure that it only takes effect on this thread.
…db needs to set oldest to a smaller value.
In mongo-rocks, when we set oldestts in force, then modify the comparison method of timestamp compactors to ensure that the comparison of oldest ts must be large, so that we can skip the check of rocksdb and set FullHistoryTsLow back. This is a hack modification method, so we need to reduce the scope of hack as much as possible and more invariant judgments. For this purpose we use thread local to ensure that it only takes effect on this thread.