Skip to content

Commit

Permalink
Make txn->GetState() const
Browse files Browse the repository at this point in the history
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
  • Loading branch information
reidHoruff committed Oct 11, 2016
1 parent 447f171 commit 02b3e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/rocksdb/utilities/transaction.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 02b3e39

Please sign in to comment.