Skip to content

Commit

Permalink
test/osd-scrub-repair.sh: use repair() instead of "ceph pg repair"
Browse files Browse the repository at this point in the history
Signed-off-by: Kefu Chai <kchai@redhat.com>
  • Loading branch information
tchaikov committed Nov 17, 2016
1 parent 7c471ea commit 7563bb8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/test/osd/osd-scrub-repair.sh
Expand Up @@ -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
Expand Down

0 comments on commit 7563bb8

Please sign in to comment.