Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

Commit afd6696

Browse files
committed
Merge branch 'master' into v4.0.3
2 parents 495b909 + 6e8429a commit afd6696

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/rocks_engine.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,16 @@ namespace mongo {
630630

631631
} // namespace
632632

633-
void RocksEngine::setStableTimestamp(Timestamp stableTimestamp) {}
633+
void RocksEngine::setStableTimestamp(Timestamp stableTimestamp) {
634+
if (!_keepDataHistory || stableTimestamp.isNull()) {
635+
return;
636+
}
637+
// Communicate to Rocksdb that it can clean up timestamp data earlier than the timestamp
638+
// provided. No future queries will need point-in-time reads at a timestamp prior to the one
639+
// provided here.
640+
const bool force = false;
641+
setOldestTimestamp(stableTimestamp, force);
642+
}
634643

635644
void RocksEngine::setInitialDataTimestamp(Timestamp initialDataTimestamp) {}
636645

0 commit comments

Comments
 (0)