osdc/Objecter: more constness

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2017-04-26 23:54:22 +08:00
parent 024314e912
commit d989151035
2 changed files with 6 additions and 4 deletions

View File

@ -1396,7 +1396,7 @@ void Objecter::C_Op_Map_Latest::finish(int r)
}
int Objecter::pool_snap_by_name(int64_t poolid, const char *snap_name,
snapid_t *snap)
snapid_t *snap) const
{
shared_lock rl(rwlock);
@ -1419,7 +1419,7 @@ int Objecter::pool_snap_by_name(int64_t poolid, const char *snap_name,
}
int Objecter::pool_snap_get_info(int64_t poolid, snapid_t snap,
pool_snap_info_t *info)
pool_snap_info_t *info) const
{
shared_lock rl(rwlock);

View File

@ -2030,9 +2030,11 @@ private:
void handle_osd_map(class MOSDMap *m);
void wait_for_osd_map();
int pool_snap_by_name(int64_t poolid, const char *snap_name, snapid_t *snap);
int pool_snap_by_name(int64_t poolid,
const char *snap_name,
snapid_t *snap) const;
int pool_snap_get_info(int64_t poolid, snapid_t snap,
pool_snap_info_t *info);
pool_snap_info_t *info) const;
int pool_snap_list(int64_t poolid, vector<uint64_t> *snaps);
private: