From c6a1f0e8ce63f6a671bbcc799da7fa518c07994f Mon Sep 17 00:00:00 2001 From: Michal Jarzabek Date: Thu, 27 Oct 2016 23:42:31 +0100 Subject: [PATCH] mds/MDSTableClient.h: add const to member funct Signed-off-by: Michal Jarzabek --- src/mds/MDSTableClient.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mds/MDSTableClient.h b/src/mds/MDSTableClient.h index b31142885759..ce15c54d8749 100644 --- a/src/mds/MDSTableClient.h +++ b/src/mds/MDSTableClient.h @@ -73,7 +73,7 @@ public: void got_journaled_agree(version_t tid, LogSegment *ls); void got_journaled_ack(version_t tid); - bool has_committed(version_t tid) { + bool has_committed(version_t tid) const { return pending_commit.count(tid) == 0; } void wait_for_ack(version_t tid, MDSInternalContextBase *c) { -- 2.47.3