From: Kefu Chai Date: Thu, 28 Feb 2019 03:26:46 +0000 (+0800) Subject: crimson/osd: use boost::make_counting_iterator() X-Git-Tag: v15.0.0~208^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7f62b656f3cf2a0e181156e6e3e4f6482db155f6;p=ceph.git crimson/osd: use boost::make_counting_iterator() no need to repeat the type of the iterator. Signed-off-by: Kefu Chai --- diff --git a/src/crimson/osd/osd.cc b/src/crimson/osd/osd.cc index bc1d245dac5a..3120b2652357 100644 --- a/src/crimson/osd/osd.cc +++ b/src/crimson/osd/osd.cc @@ -1,5 +1,6 @@ #include "osd.h" +#include #include #include @@ -418,8 +419,8 @@ seastar::future OSD::load_map_bl(epoch_t e) seastar::future<> OSD::store_maps(ceph::os::Transaction& t, epoch_t start, Ref m) { - return seastar::do_for_each(boost::counting_iterator(start), - boost::counting_iterator(m->get_last() + 1), + return seastar::do_for_each(boost::make_counting_iterator(start), + boost::make_counting_iterator(m->get_last() + 1), [&t, m, this](epoch_t e) { if (auto p = m->maps.find(e); p != m->maps.end()) { auto o = std::make_unique();