From: Danny Al-Gaaf Date: Wed, 19 Feb 2014 16:59:37 +0000 (+0100) Subject: DBObjectMap: use !empty() instead of size() X-Git-Tag: v0.78~138^2~12 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=eaf66967917fb100894e543f65efb1948b524478;p=ceph.git DBObjectMap: use !empty() instead of size() Signed-off-by: Danny Al-Gaaf --- diff --git a/src/os/DBObjectMap.cc b/src/os/DBObjectMap.cc index 5334521d3cc5..5d2a2e616242 100644 --- a/src/os/DBObjectMap.cc +++ b/src/os/DBObjectMap.cc @@ -799,7 +799,7 @@ int DBObjectMap::clear_keys_header(const ghobject_t &oid, // create new header Header newheader = generate_new_header(oid, Header()); set_map_header(oid, *newheader, t); - if (attrs.size()) + if (!attrs.empty()) t->set(xattr_prefix(newheader), attrs); return db->submit_transaction(t); }