diff options
Diffstat (limited to 'src/mongo/db/storage/snapshot_helper.h')
-rw-r--r-- | src/mongo/db/storage/snapshot_helper.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/storage/snapshot_helper.h b/src/mongo/db/storage/snapshot_helper.h index fa8fdd85f24..c24dfd16d8c 100644 --- a/src/mongo/db/storage/snapshot_helper.h +++ b/src/mongo/db/storage/snapshot_helper.h @@ -37,6 +37,10 @@ namespace SnapshotHelper { boost::optional<RecoveryUnit::ReadSource> getNewReadSource(OperationContext* opCtx, const NamespaceString& nss); +bool shouldReadAtLastApplied(OperationContext* opCtx, + const NamespaceString& nss, + std::string* reason = nullptr); + bool collectionChangesConflictWithRead(boost::optional<Timestamp> collectionMin, boost::optional<Timestamp> readTimestamp); } // namespace SnapshotHelper |