]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/standalone/scrub/osd-scrub-dump.sh: drop unnecessary primary lookup 50666/head
authorSamuel Just <sjust@redhat.com>
Mon, 20 Mar 2023 21:07:32 +0000 (21:07 +0000)
committerSamuel Just <sjust@redhat.com>
Wed, 12 Apr 2023 03:39:19 +0000 (20:39 -0700)
1e44d86b2 swapped this to a pg tell command which doesn't actually
need the primary specified.  Drop the now unnecessary lookup.

Signed-off-by: Samuel Just <sjust@redhat.com>
qa/standalone/scrub/osd-scrub-dump.sh

index f21ec78013faba87155f9161c8fd76279b9aa351..0129114625aa31efb8311dca2cf5f78e4ffba306 100755 (executable)
@@ -85,7 +85,6 @@ function TEST_recover_unexpected() {
 
     for qpg in $(ceph pg dump pgs --format=json-pretty | jq '.pg_stats[].pgid')
     do
-       primary=$(ceph pg dump pgs --format=json | jq ".pg_stats[] | select(.pgid == $qpg) | .acting_primary")
        eval pg=$qpg   # strip quotes around qpg
        ceph tell $pg scrub
     done