]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
TestRados: make half the objects have long names
authorSamuel Just <sjust@redhat.com>
Thu, 10 Mar 2016 23:38:26 +0000 (15:38 -0800)
committerSamuel Just <sjust@redhat.com>
Mon, 14 Mar 2016 17:25:30 +0000 (10:25 -0700)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/test/osd/TestRados.cc

index f35b98725a93a012e247be81bf424fc2cf9b18fc..1833828715e942ba7f0dd994aaf522851fdf9b86 100644 (file)
@@ -54,6 +54,13 @@ public:
     if (m_op <= m_objects) {
       stringstream oid;
       oid << m_op;
+      if (m_op % 2) {
+       // make it a long name
+       oid << " ";
+       for (unsigned i = 0; i < 300; ++i) {
+         oid << i;
+       }
+      }
       cout << m_op << ": write initial oid " << oid.str() << std::endl;
       context.oid_not_flushing.insert(oid.str());
       if (m_ec_pool) {