From: Abhishek Lekshmanan Date: Mon, 25 Jul 2016 08:52:48 +0000 (+0200) Subject: rgw: log mp upload failures due to parts mismatch X-Git-Tag: ses5-milestone5~193^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=96407cbdb6a3c9135ae147f285f7fc0a07edadb2;p=ceph.git rgw: log mp upload failures due to parts mismatch 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 --- diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index 6ae7627021cd..ca5c22f363b2 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -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; }