]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
ceph_dedup_tool: fix log lines to use std::endl, update object skip message
authorSamuel Just <sjust@redhat.com>
Sat, 17 Sep 2022 03:08:54 +0000 (20:08 -0700)
committermyoungwon oh <ohmyoungwon@gmail.com>
Mon, 19 Sep 2022 04:21:45 +0000 (13:21 +0900)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/tools/ceph_dedup_tool.cc

index 39b4eb2fbd507b2ee503501882642c1c648ce7c1..f89af555ce53e3a93209cb43ae016962b6c24147 100644 (file)
@@ -739,7 +739,7 @@ void SampleDedupWorkerThread::try_dedup_and_accumulate_result(ObjectItem &object
   bufferlist data = read_object(object);
   if (data.length() == 0) {
     cerr << __func__ << " skip object " << object.oid
-      << " dedup (read failed)\n";
+        << " read returned size 0" << std::endl;
     return;
   }
   auto chunks = do_cdc(object, data);
@@ -752,7 +752,8 @@ void SampleDedupWorkerThread::try_dedup_and_accumulate_result(ObjectItem &object
   }
   if (chunk_total_amount != data.length()) {
     cerr << __func__ << " sum of chunked length(" << chunk_total_amount
-      << ") is different from object data length(" << data.length() << ")\n";
+        << ") is different from object data length(" << data.length() << ")"
+        << std::endl;
     return;
   }