summaryrefslogtreecommitdiffstats
path: root/src/mds/Mutation.h
diff options
context:
space:
mode:
authorMichal Jarzabek <stiopa@gmail.com>2016-10-27 22:51:30 +0200
committerMichal Jarzabek <stiopa@gmail.com>2016-10-27 22:51:30 +0200
commitc9b4916098dc1210cf79af1659dbd96e7ce09753 (patch)
treedf16eb826288ab39731c4780edf6323618909b58 /src/mds/Mutation.h
parentMerge pull request #11285 from liewegas/wip-mgr-rpm (diff)
downloadceph-c9b4916098dc1210cf79af1659dbd96e7ce09753.tar.xz
ceph-c9b4916098dc1210cf79af1659dbd96e7ce09753.zip
mds/Mutation.h: add const to member functions
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
Diffstat (limited to '')
-rw-r--r--src/mds/Mutation.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mds/Mutation.h b/src/mds/Mutation.h
index 89cc92f3864..fbe259938b8 100644
--- a/src/mds/Mutation.h
+++ b/src/mds/Mutation.h
@@ -113,7 +113,7 @@ public:
bool is_master() const { return slave_to_mds == MDS_RANK_NONE; }
bool is_slave() const { return slave_to_mds != MDS_RANK_NONE; }
- client_t get_client() {
+ client_t get_client() const {
if (reqid.name.is_client())
return client_t(reqid.name.num());
return -1;
@@ -144,7 +144,7 @@ public:
void finish_locking(SimpleLock *lock);
// auth pins
- bool is_auth_pinned(MDSCacheObject *object);
+ bool is_auth_pinned(MDSCacheObject *object) const;
void auth_pin(MDSCacheObject *object);
void auth_unpin(MDSCacheObject *object);
void drop_local_auth_pins();
@@ -321,10 +321,10 @@ struct MDRequestImpl : public MutationImpl, public TrackedOp {
~MDRequestImpl();
More* more();
- bool has_more();
+ bool has_more() const;
bool has_witnesses();
bool slave_did_prepare();
- bool did_ino_allocation();
+ bool did_ino_allocation() const;
bool freeze_auth_pin(CInode *inode);
void unfreeze_auth_pin(bool clear_inode=false);
void set_remote_frozen_auth_pin(CInode *inode);