]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: remove duplicated flush_pg_stats() helper
authorKefu Chai <kchai@redhat.com>
Mon, 12 Jun 2017 10:32:50 +0000 (18:32 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 12 Jun 2017 10:32:50 +0000 (18:32 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/workunits/cephtool/test.sh

index 45906a0827a1f1cf17cc811604945dd46ca25212..422a4995b6f4c69cd98cfac2f1aa309655ca77ec 100755 (executable)
@@ -294,24 +294,6 @@ function test_tiering_agent()
   ceph osd pool delete $slow $slow --yes-i-really-really-mean-it
 }
 
-function flush_pg_stats()
-{
-    ids=`ceph osd ls`
-    seqs=''
-    for osd in $ids
-    do
-       seq=`ceph tell osd.$osd flush_pg_stats`
-       seqs="$seqs $osd-$seq"
-    done
-    for s in $seqs
-    do
-       osd=`echo $s | cut -d - -f 1`
-       seq=`echo $s | cut -d - -f 2`
-       echo "waiting osd.$osd seq $seq"
-       while test $(ceph osd last-stat-seq $osd) -lt $seq; do sleep 1 ; done
-    done
-}
-
 function test_tiering_1()
 {
   # tiering