mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
test/osd-scrub-repair.sh: use repair() instead of "ceph pg repair"
Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
7c471eaf5a
commit
1be2eb114b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user