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
This commit is contained in:
Reid Horuff 2016-10-10 16:22:10 -07:00
parent 447f17127c
commit 02b3e3985c

View File

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