]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_test_rados_api_tier: do fewer writes in HitSetWrite 2146/head
authorSage Weil <sage@redhat.com>
Fri, 25 Jul 2014 20:51:45 +0000 (13:51 -0700)
committerSage Weil <sage@redhat.com>
Fri, 25 Jul 2014 20:53:03 +0000 (13:53 -0700)
We don't need to do quite so many writes.  It can be slow when we are
thrashing and aren't doing anything in parallel.

Fixes: #8932
Signed-off-by: Sage Weil <sage@redhat.com>
src/test/librados/tier.cc

index 611e17e897b7887c0462a280861daa8b4c812db4..c740961e1debfe9572e096a5c7422201a1e1527e 100644 (file)
@@ -2047,8 +2047,10 @@ TEST_F(LibRadosTierPP, HitSetWrite) {
 
   ioctx.set_namespace("");
 
+  int num = 200;
+
   // do a bunch of writes
-  for (int i=0; i<1000; ++i) {
+  for (int i=0; i<num; ++i) {
     bufferlist bl;
     bl.append("a");
     ASSERT_EQ(0, ioctx.write(stringify(i), bl, 1, 0));
@@ -2084,7 +2086,7 @@ TEST_F(LibRadosTierPP, HitSetWrite) {
       num_pg = _get_pg_num(cluster, pool_name);
   }
 
-  for (int i=0; i<1000; ++i) {
+  for (int i=0; i<num; ++i) {
     string n = stringify(i);
     uint32_t hash = ioctx.get_object_hash_position(n);
     hobject_t oid(sobject_t(n, CEPH_NOSNAP), "", hash,