]> git.apps.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 21:15:49 +0000 (16:15 -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>
qa/standalone/osd/repro_long_log.sh

index bba8e9502e59842124b7d21814422170022fcac6..7284fedb203f87dc5e8bc9636036f4f47471e7bf 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 "$@"