mongodb-partners / mongo-rocks

MongoDB storage integration layer for the Rocks storage engine
401 stars 100 forks source link

Because rocksdb does not support FullHistoryTsLow fallback, and mongo… #199

Closed eharry closed 2 years ago

eharry commented 2 years ago

…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.