]> git-server-git.apps.pok.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, 9 May 2016 21:38:22 +0000 (14:38 -0700)
Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit 8b64432d07a14df9dfd2ed1314783de16530b1d1)

src/test/osd/TestRados.cc

index e8eb0db9df05332258051d5e7c0a31f0c25a7d5e..dd03d5f516d2c5da16ccdafae5720d7f8f7d9674 100644 (file)
@@ -52,6 +52,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) {