From: Danny Al-Gaaf Date: Wed, 19 Feb 2014 17:09:24 +0000 (+0100) Subject: RPCRecPred: use !empty() instead of size() >= 1 X-Git-Tag: v0.78~138^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f23ab4af4cf867d51dc68aeb0283b57492b16cad;p=ceph.git RPCRecPred: use !empty() instead of size() >= 1 Signed-off-by: Danny Al-Gaaf --- diff --git a/src/osd/ReplicatedBackend.h b/src/osd/ReplicatedBackend.h index ed27314cf0ad..64e91a69d283 100644 --- a/src/osd/ReplicatedBackend.h +++ b/src/osd/ReplicatedBackend.h @@ -76,7 +76,7 @@ public: class RPCRecPred : public IsRecoverablePredicate { public: bool operator()(const set &have) const { - return have.size() >= 1; + return !have.empty(); } }; IsRecoverablePredicate *get_is_recoverable_predicate() {