From 96407cbdb6a3c9135ae147f285f7fc0a07edadb2 Mon Sep 17 00:00:00 2001 From: Abhishek Lekshmanan Date: Mon, 25 Jul 2016 10:52:48 +0200 Subject: [PATCH] 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 --- src/rgw/rgw_op.cc | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.47.3