diff options
author | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2014-03-04 19:50:02 +0100 |
---|---|---|
committer | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2014-03-04 19:50:02 +0100 |
commit | c2cc17893f16098b82399b87711ffc478f9051ef (patch) | |
tree | a26180f41158cbcb29c8b00e18bdfcf622e739da /src/osd/ECBackend.cc | |
parent | ceph_argparse.cc: prefer prefix ++operator for non-trivial iterator (diff) | |
download | ceph-c2cc17893f16098b82399b87711ffc478f9051ef.tar.xz ceph-c2cc17893f16098b82399b87711ffc478f9051ef.zip |
ECBackend.cc: use !empty() instead of size()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Diffstat (limited to 'src/osd/ECBackend.cc')
-rw-r--r-- | src/osd/ECBackend.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osd/ECBackend.cc b/src/osd/ECBackend.cc index f83d2977a56..bd7be5737d5 100644 --- a/src/osd/ECBackend.cc +++ b/src/osd/ECBackend.cc @@ -797,7 +797,7 @@ void ECBackend::handle_sub_write( if (!get_parent()->pgb_is_primary()) get_parent()->update_stats(op.stats); ObjectStore::Transaction *localt = new ObjectStore::Transaction; - if (op.temp_added.size()) { + if (!op.temp_added.empty()) { get_temp_coll(localt); add_temp_objs(op.temp_added); } |