]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/test: touch object before access it. 46834/head
authorchunmei-liu <chunmei.liu@intel.com>
Thu, 30 Jun 2022 20:56:00 +0000 (13:56 -0700)
committerchunmei-liu <chunmei.liu@intel.com>
Thu, 30 Jun 2022 21:22:58 +0000 (14:22 -0700)
no automatically create onode in seastore.

Signed-off-by: chunmei-liu <chunmei.liu@intel.com>
src/test/crimson/seastore/test_seastore.cc

index c6471998d9cc7ee3ef7f384e6de83521146eb065..514b19c6a477f87950f3bc28faea623f4b4793b8 100644 (file)
@@ -504,6 +504,7 @@ TEST_F(seastore_test_t, omap_test_simple)
 {
   run_async([this] {
     auto &test_obj = get_object(make_oid(0));
+    test_obj.touch(*seastore);
     test_obj.set_omap(
       *seastore,
       "asdf",
@@ -518,6 +519,7 @@ TEST_F(seastore_test_t, attr)
 {
   run_async([this] {
     auto& test_obj = get_object(make_oid(0));
+    test_obj.touch(*seastore);
   {
     std::string oi("asdfasdfasdf");
     bufferlist bl;
@@ -664,6 +666,7 @@ TEST_F(seastore_test_t, omap_test_iterator)
       return ss.str();
     };
     auto &test_obj = get_object(make_oid(0));
+    test_obj.touch(*seastore);
     for (unsigned i = 0; i < 20; ++i) {
       test_obj.set_omap(
        *seastore,