#include "util/string_util.h"
#include "utilities/transactions/pessimistic_transaction.h"
#include "utilities/transactions/pessimistic_transaction_db.h"
-#include "utilities/transactions/transaction_lock_mgr.h"
#include "utilities/transactions/write_prepared_txn.h"
namespace ROCKSDB_NAMESPACE {
// happen after recovery, or it could be committed and evicted by another
// commit, or never committed.
- // At this point we dont know if it was committed or it is still prepared
+ // At this point we don't know if it was committed or it is still prepared
max_evicted_seq_ub = max_evicted_seq_.load(std::memory_order_acquire);
if (UNLIKELY(max_evicted_seq_lb != max_evicted_seq_ub)) {
continue;
SequenceNumber* min,
SequenceNumber* max) {
if (snapshot != nullptr) {
- *min = static_cast_with_check<const SnapshotImpl, const Snapshot>(snapshot)
- ->min_uncommitted_;
- *max = static_cast_with_check<const SnapshotImpl, const Snapshot>(snapshot)
- ->number_;
+ *min =
+ static_cast_with_check<const SnapshotImpl>(snapshot)->min_uncommitted_;
+ *max = static_cast_with_check<const SnapshotImpl>(snapshot)->number_;
return kBackedByDBSnapshot;
} else {
*min = SmallestUnCommittedSeq();