mirror of
https://github.com/ceph/ceph
synced 2025-02-19 08:57:27 +00:00
Merge pull request #10251 from stiopaa1/osd_watch_addConsts
osd/Watch: add consts to member functions Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
commit
a048e19589
@ -422,7 +422,7 @@ void Watch::discard_state()
|
||||
obc = ObjectContextRef();
|
||||
}
|
||||
|
||||
bool Watch::is_discarded()
|
||||
bool Watch::is_discarded() const
|
||||
{
|
||||
return discarded;
|
||||
}
|
||||
|
@ -197,10 +197,10 @@ public:
|
||||
return last_ping;
|
||||
}
|
||||
|
||||
bool is_connected() {
|
||||
bool is_connected() const {
|
||||
return conn.get() != NULL;
|
||||
}
|
||||
bool is_connected(Connection *con) {
|
||||
bool is_connected(Connection *con) const {
|
||||
return conn.get() == con;
|
||||
}
|
||||
|
||||
@ -248,7 +248,7 @@ public:
|
||||
void discard();
|
||||
|
||||
/// True if removed or discarded
|
||||
bool is_discarded();
|
||||
bool is_discarded() const;
|
||||
|
||||
/// Called on unwatch
|
||||
void remove(bool send_disconnect);
|
||||
|
Loading…
Reference in New Issue
Block a user