]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test/osd-scrub-repair.sh: use repair() instead of "ceph pg repair"
authorKefu Chai <kchai@redhat.com>
Thu, 17 Nov 2016 07:05:33 +0000 (15:05 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 17 Nov 2016 10:51:52 +0000 (18:51 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/osd/osd-scrub-repair.sh

index f5600ae6d1fc648a9ac2309d08bae1782a62b72d..7ab065b4acdd41bcdaa96ccdf681f0c2de2a4845 100755 (executable)
@@ -349,13 +349,12 @@ function TEST_list_missing_erasure_coded() {
 
     # Repair the PG, which triggers the recovering,
     # and should mark the object as unfound
-    ceph pg repair $pg
+    repair $pg
     
     for i in $(seq 0 120) ; do
         [ $i -lt 60 ] || return 1
         matches=$(ceph pg $pg list_missing | egrep "MOBJ0|MOBJ1" | wc -l)
         [ $matches -eq 2 ] && break
-        sleep 1
     done
 
     teardown $dir || return 1