提交 02b3e398 编写于 作者: R Reid Horuff

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
上级 447f1712
...@@ -416,7 +416,7 @@ class Transaction { ...@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册