diff --git a/utilities/transactions/write_unprepared_txn.h b/utilities/transactions/write_unprepared_txn.h index 4a00406d7..68567eb6e 100644 --- a/utilities/transactions/write_unprepared_txn.h +++ b/utilities/transactions/write_unprepared_txn.h @@ -42,14 +42,15 @@ class WriteUnpreparedTxnReadCallback : public ReadCallback { // TODO(myabandeh): override Refresh when Iterator::Refresh is supported private: - SequenceNumber CalcMaxVisibleSeq(WriteUnpreparedTxn* txn, - SequenceNumber snapshot_seq) { + static SequenceNumber CalcMaxVisibleSeq(WriteUnpreparedTxn* txn, + SequenceNumber snapshot_seq) { SequenceNumber max_unprepared = CalcMaxUnpreparedSequenceNumber(txn); assert(snapshot_seq < max_unprepared || max_unprepared == 0 || snapshot_seq == kMaxSequenceNumber); return std::max(max_unprepared, snapshot_seq); } - SequenceNumber CalcMaxUnpreparedSequenceNumber(WriteUnpreparedTxn* txn); + static SequenceNumber CalcMaxUnpreparedSequenceNumber( + WriteUnpreparedTxn* txn); WritePreparedTxnDB* db_; WriteUnpreparedTxn* txn_; SequenceNumber wup_snapshot_;