]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "test/unittest_deferred: debug code"
authorMatan Breizman <mbreizma@redhat.com>
Tue, 11 Mar 2025 09:13:05 +0000 (09:13 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Tue, 11 Mar 2025 09:13:05 +0000 (09:13 +0000)
This reverts commit fff713965ecc5ce4ae80a299d1975cb23b31c3e9.

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/test/objectstore/test_deferred.cc

index 9e474df181c937c450fb815b9c738b24c0f7882c..fc33be588f064ad88aefc5aa55f1f032367dea4b 100644 (file)
@@ -130,8 +130,6 @@ void create_deferred_and_terminate() {
 
   // small deferred writes over object
   // and complete overwrite of previous one
-  lgeneric_dout(g_ceph_context, 0) << "starting object IO" << dendl;
-  cout << "starting object IO" << std::endl;
   bufferlist bl_8_bytes;
   bl_8_bytes.append("abcdefgh");
   std::atomic<size_t> deferred_counter{0};
@@ -149,9 +147,7 @@ void create_deferred_and_terminate() {
     ghobject_t hoid_m(hobject_t(oid_m, "", CEPH_NOSNAP, 1, poolid, ""));
     t.write(cid, hoid_m, 4096 * o, bl_64K.length(), bl_64K);
 
-    t.register_on_commit(new C_do_action([=, &deferred_counter] {
-      lgeneric_dout(g_ceph_context, 0) << "completed id=" << o << dendl;
-      cout << "completed id=" << o << std::endl;
+    t.register_on_commit(new C_do_action([&] {
       if (++deferred_counter == object_count) {
         exit(0);
       }