From: Michal Jarzabek Date: Thu, 27 Oct 2016 22:42:31 +0000 (+0100) Subject: mds/MDSTableClient.h: add const to member funct X-Git-Tag: v11.1.0~370^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c6a1f0e8ce63f6a671bbcc799da7fa518c07994f;p=ceph.git mds/MDSTableClient.h: add const to member funct Signed-off-by: Michal Jarzabek --- 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) {