]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd: remove incorrect use of std::includes() 47584/head
authorIlya Dryomov <idryomov@gmail.com>
Fri, 12 Aug 2022 09:10:45 +0000 (11:10 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Sun, 14 Aug 2022 16:30:33 +0000 (18:30 +0200)
commit94ad8cd06afd037a3b5aa55ee8e4ba58a90dc883
treed52ae629f23b8eacd93359ab65883d46dc05780b
parenta9776fd652bd1c0f6de15f413e2dc7b409c4b472
rbd: remove incorrect use of std::includes()

- std::includes() requires sorted ranges but command specs aren't
  sorted
- std::includes() purpose is to check whether the second range is
  a subsequence of the first range but here the size of the second
  range is always equal to the size of the first range, which means
  that, had the ranges been sorted, std::includes() would have checked
  straight equality

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 1483e2a20237ad65fa3188b910e4e19f3ace9030)
src/tools/rbd/Shell.cc