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:
Dongsheng Yang 2019-02-28 03:12:17 -05:00 committed by Jason Dillaman
parent 34f04be35b
commit e803b0b666

View File

@ -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: