mirror of
https://github.com/ceph/ceph
synced 2025-03-19 00:45:00 +00:00
librbd: fix were_all_throttled() to avoid incorrect ret-value
Fixes: http://tracker.ceph.com/issues/38504 Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
This commit is contained in:
parent
34f04be35b
commit
e803b0b666
@ -140,7 +140,7 @@ public:
|
||||
}
|
||||
|
||||
bool were_all_throttled() {
|
||||
return m_throttled_flag & RBD_QOS_MASK;
|
||||
return (m_throttled_flag & RBD_QOS_MASK) == RBD_QOS_MASK;
|
||||
}
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user