]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: log mp upload failures due to parts mismatch 10424/head
authorAbhishek Lekshmanan <abhishek@suse.com>
Mon, 25 Jul 2016 08:52:48 +0000 (10:52 +0200)
committerAbhishek Lekshmanan <abhishek@suse.com>
Mon, 25 Jul 2016 08:52:48 +0000 (10:52 +0200)
Like all the other error messages in complete multipart upload, add a
more descriptive reason when we fail a multipart upload when we have
lesser parts than expected by the client

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
src/rgw/rgw_op.cc

index 6ae7627021cdaf17cdc38064f68f230d025d80ea..ca5c22f363b289b5f2b7f903bab598531cd18a1d 100644 (file)
@@ -4271,6 +4271,8 @@ void RGWCompleteMultipart::execute()
 
     total_parts += obj_parts.size();
     if (!truncated && total_parts != (int)parts->parts.size()) {
+      ldout(s->cct, 0) << "NOTICE: total parts mismatch: have: " << total_parts
+                      << " expected: " << parts->parts.size() << dendl;
       op_ret = -ERR_INVALID_PART;
       return;
     }