Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

osdc/Objecter: more constness #14819

Merged
merged 1 commit into from
Apr 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/osdc/Objecter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);

Expand Down
6 changes: 4 additions & 2 deletions src/osdc/Objecter.h
Original file line number Diff line number Diff line change
Expand Up @@ -2030,9 +2030,11 @@ class Objecter : public md_config_obs_t, public Dispatcher {
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:

Expand Down