mirror of
https://github.com/ceph/ceph
synced 2025-01-20 10:01:45 +00:00
OSDCaps: fix allow_all()
OSD_CAP_ANY is not a mask. Treating it as one made any allowance equivalent to 'allow *'. Fixes: #3228 Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
This commit is contained in:
parent
e903ca7add
commit
de6e0d8112
@ -50,7 +50,7 @@ struct OSDCapSpec {
|
||||
OSDCapSpec(std::string n, std::string a) : allow(0), class_name(n), class_allow(a) {}
|
||||
|
||||
bool allow_all() const {
|
||||
return allow & OSD_CAP_ANY;
|
||||
return allow == OSD_CAP_ANY;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user