]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/: add some debugging to copyfrom
authorSamuel Just <sjust@redhat.com>
Mon, 31 Oct 2016 17:52:12 +0000 (10:52 -0700)
committerSamuel Just <sjust@redhat.com>
Thu, 17 Nov 2016 18:41:34 +0000 (10:41 -0800)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/osd/ECTransaction.h
src/osd/ReplicatedPG.cc

index 789f8c8ec93cdbe3135cf4b94099aae563b13a3b..e1a18b847631a08ec97b068d193f60710a06646c 100644 (file)
@@ -56,6 +56,8 @@ namespace ECTransaction {
        }
 
        if (i.second.is_delete()) {
+         ldpp_dout(dpp, 20) << __func__ << ": delete, setting projected size"
+                            << " to 0" << dendl;
          projected_size = 0;
        }
 
index 418a15875d9c4b06b4c233c2db5c262453e9766b..a159391608bbdcafc7b70d8eac3f5f0ab149a4b9 100644 (file)
@@ -7478,11 +7478,14 @@ void ReplicatedPG::process_copy_chunk(hobject_t oid, ceph_tid_t tid, int r)
     [this, &cop /* avoid ref cycle */](PGTransaction *t) {
       ObjectState& obs = cop->obc->obs;
       if (cop->temp_cursor.is_initial()) {
+       dout(20) << "fill_in_final_tx: writing "
+                << "directly to final object" << dendl;
        // write directly to final object
        cop->results.temp_oid = obs.oi.soid;
        _write_copy_chunk(cop, t);
       } else {
        // finish writing to temp object, then move into place
+       dout(20) << "fill_in_final_tx: writing to temp object" << dendl;
        _write_copy_chunk(cop, t);
        t->rename(obs.oi.soid, cop->results.temp_oid);
       }
@@ -7606,6 +7609,7 @@ void ReplicatedPG::finish_copyfrom(OpContext *ctx)
   CopyFromCallback *cb = static_cast<CopyFromCallback*>(ctx->copy_cb);
 
   if (obs.exists) {
+    dout(20) << __func__ << ": exists, removing" << dendl;
     ctx->op_t->remove(obs.oi.soid);
   } else {
     ctx->delta_stats.num_objects++;