mirror of
https://github.com/ceph/ceph
synced 2024-12-26 21:43:10 +00:00
frag: const cleanup fragset_t
Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
1b0bb7a1e9
commit
f66d472845
@ -538,7 +538,7 @@ class fragset_t {
|
||||
std::set<frag_t> _set;
|
||||
|
||||
public:
|
||||
std::set<frag_t> &get() { return _set; }
|
||||
const std::set<frag_t> &get() const { return _set; }
|
||||
std::set<frag_t>::iterator begin() { return _set.begin(); }
|
||||
std::set<frag_t>::iterator end() { return _set.end(); }
|
||||
|
||||
@ -578,7 +578,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
inline std::ostream& operator<<(std::ostream& out, fragset_t& fs)
|
||||
inline std::ostream& operator<<(std::ostream& out, const fragset_t& fs)
|
||||
{
|
||||
return out << "fragset_t(" << fs.get() << ")";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user