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:
Jason Dillaman 2019-03-01 10:43:36 -05:00 committed by GitHub
commit 4ab84327d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: