mirror of
https://github.com/ceph/ceph
synced 2024-12-18 17:37:38 +00:00
osdc/Objecter: more constness
Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
024314e912
commit
d989151035
@ -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);
|
||||
|
||||
|
@ -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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user