]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG: add debugging to EINVAL returns
authorSamuel Just <sjust@redhat.com>
Sat, 3 Dec 2016 19:48:44 +0000 (11:48 -0800)
committerSamuel Just <sjust@redhat.com>
Sun, 4 Dec 2016 00:05:48 +0000 (16:05 -0800)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/osd/ReplicatedPG.cc

index 689567e2da759ec0e6388e5e9c0aee0e3c38957b..eb77dd73a4deea2f3b5e8f30558588829ebd42c8 100644 (file)
@@ -1741,8 +1741,11 @@ void ReplicatedPG::do_op(OpRequestRef& op)
   m->finish_decode();
   m->clear_payload();
 
+  dout(20) << __func__ << ": op " << *m << dendl;
+
   if (m->has_flag(CEPH_OSD_FLAG_PARALLELEXEC)) {
     // not implemented.
+    dout(20) << __func__ << ": PARALLELEXEC not implemented " << *m << dendl;
     osd->reply_op_error(op, -EINVAL);
     return;
   }
@@ -1862,6 +1865,7 @@ void ReplicatedPG::do_op(OpRequestRef& op)
 
     // invalid?
     if (m->get_snapid() != CEPH_NOSNAP) {
+      dout(20) << __func__ << ": write to clone not valid " << *m << dendl;
       osd->reply_op_error(op, -EINVAL);
       return;
     }
@@ -1945,6 +1949,7 @@ void ReplicatedPG::do_op(OpRequestRef& op)
  
   // asking for SNAPDIR is only ok for reads
   if (m->get_snapid() == CEPH_SNAPDIR && op->may_write()) {
+    dout(20) << __func__ << ": write to snapdir not valid " << *m << dendl;
     osd->reply_op_error(op, -EINVAL);
     return;
   }