mirror of
https://github.com/ceph/ceph
synced 2025-03-21 01:38:15 +00:00
Merge pull request #26688 from yangdongsheng/librbd_fix_all_throttled
librbd: fix were_all_throttled() to avoid incorrect ret-value Reviewed-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
commit
4ab84327d9
@ -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