]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/standalone/osd/repro_long_log.sh: fix test
authorSage Weil <sage@redhat.com>
Wed, 11 Jul 2018 12:10:28 +0000 (07:10 -0500)
committerSage Weil <sage@redhat.com>
Wed, 11 Jul 2018 22:09:44 +0000 (17:09 -0500)
The log trimming case wasn't quite right.  Before HEAD^ we were
rolling forward too aggressively and miscalculating the can_rollforward_to,
which affected the trim_to calculation.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 4f9fdd98e2dde3979ec88a3f761d76f7b297415c)

qa/standalone/osd/repro_long_log.sh

index 1f4ba29bdfbc444d0880c68c70fcf7884825bf43..93201a2a50c60ed2ed1abd8dfc4ac14db82de2cf 100755 (executable)
@@ -138,10 +138,11 @@ function TEST_trim_max_entries()
     rados -p test rm foo
     test_log_size $PGID 3
     rados -p test rm foo
-    test_log_size $PGID 4
-
+    test_log_size $PGID 3
     rados -p test rm foo
-    test_log_size $PGID 2
+    test_log_size $PGID 3
+    rados -p test rm foo
+    test_log_size $PGID 3
 }
 
 main repro-long-log "$@"