From 02b3e3985ce55d70f9192799fa2ac5fb248ff0eb Mon Sep 17 00:00:00 2001 From: Reid Horuff Date: Mon, 10 Oct 2016 16:22:10 -0700 Subject: [PATCH] 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 --- include/rocksdb/utilities/transaction.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rocksdb/utilities/transaction.h b/include/rocksdb/utilities/transaction.h index f7542411b..44195778a 100644 --- a/include/rocksdb/utilities/transaction.h +++ b/include/rocksdb/utilities/transaction.h @@ -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: