Make txn->GetState() const

Summary: makes Transaction::GetState() a const function.

Test Plan: compiles.

Reviewers: mung

Reviewed By: mung

Subscribers: andrewkr, dhruba

Differential Revision: https://reviews.facebook.net/D64929
main
Reid Horuff 8 years ago
parent 447f17127c
commit 02b3e3985c
  1. 2
      include/rocksdb/utilities/transaction.h

@ -416,7 +416,7 @@ class Transaction {
LOCKS_STOLEN = 7, LOCKS_STOLEN = 7,
}; };
TransactionState GetState() { return txn_state_; } TransactionState GetState() const { return txn_state_; }
void SetState(TransactionState state) { txn_state_ = state; } void SetState(TransactionState state) { txn_state_ = state; }
protected: protected:

Loading…
Cancel
Save