]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd,mon: switch from vectors_equal() to operator==() 18064/head
authorKefu Chai <kchai@redhat.com>
Sun, 1 Oct 2017 06:40:55 +0000 (14:40 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 1 Oct 2017 07:09:03 +0000 (15:09 +0800)
commitd221aba2d757c0449a83f0e8b9bf6648c78c15cf
treeb6af3783f41162c631f557b684668ec849fb5bfe
parent36f9607c63091517c4ef08eb081c697e454a35aa
osd,mon: switch from vectors_equal() to operator==()

std::equal() in c++11 is able to compare elements of different container
types. but would be easier to read if we can just use the operator==().

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/OSDMonitor.cc
src/osd/OSDMap.cc
src/osd/OSDMap.h