]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tools/osdmaptool.cc: do not use deprecated std::random_shuffle()
authorKefu Chai <kchai@redhat.com>
Wed, 4 Dec 2019 00:06:40 +0000 (16:06 -0800)
committerDavid Zafman <dzafman@redhat.com>
Wed, 4 Dec 2019 01:31:56 +0000 (17:31 -0800)
commit7c138f924ecb2472b640b49995e4204162dde8f6
tree70fbc0272c180f3e4cdcc0349af6a00ba5f414fc
parent0cc810360b8e4a415f7f182e4b21f64713004825
tools/osdmaptool.cc: do not use deprecated std::random_shuffle()
the use of `std::random_shuffle()` was introduced by
b946308 .

in this change, it is replaced using `std::shuffle()`.

Fixes: https://tracker.ceph.com/issues/43084
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 30dfef208d859a67c1f1b13c314735861c536e85)

Conflicts:
src/tools/osdmaptool.cc (randomizing pools here instead of rules)
src/tools/osdmaptool.cc