]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: access last std::vector element with `back()` 23469/head
authorVenky Shankar <vshankar@redhat.com>
Tue, 7 Aug 2018 09:10:09 +0000 (05:10 -0400)
committerVenky Shankar <vshankar@redhat.com>
Fri, 17 Aug 2018 06:45:09 +0000 (02:45 -0400)
commitf9b8ad5793d8265f131566233080613f475004aa
tree618deaf88fdaced2b5757de75c81c3cb1ee79f9d
parentbae6c9db656afeff1dede6253300d22082313187
mds: access last std::vector element with `back()`

... rather than accessing it as an array. also convert
to range loops whereever necessary. plus some style
fixes.

Fixes: https://tracker.ceph.com/issues/25113
Signed-off-by: Venky Shankar <vshankar@redhat.com>
src/mds/Server.cc