}
ret = get_params();
- if (ret < 0)
+ if (ret < 0) {
+ ldout(s->cct, 20) << "get_params() returned ret=" << ret << dendl;
goto done;
+ }
ret = get_system_versioning_params(s, &olh_epoch, &version_id);
if (ret < 0) {
+ ldout(s->cct, 20) << "get_system_versioning_params() returned ret=" \
+ << ret << dendl;
goto done;
}
ret = store->check_quota(s->bucket_owner.get_id(), s->bucket,
user_quota, bucket_quota, s->content_length);
if (ret < 0) {
+ ldout(s->cct, 20) << "check_quota() returned ret=" << ret << dendl;
goto done;
}
}
processor = select_processor(*static_cast<RGWObjectCtx *>(s->obj_ctx), &multipart);
ret = processor->prepare(store, NULL);
- if (ret < 0)
+ if (ret < 0) {
+ ldout(s->cct, 20) << "processor->prepare() returned ret=" << ret << dendl;
goto done;
+ }
do {
bufferlist data;
ret = store->check_quota(s->bucket_owner.get_id(), s->bucket,
user_quota, bucket_quota, s->obj_size);
if (ret < 0) {
+ ldout(s->cct, 20) << "second check_quota() returned ret=" << ret << dendl;
goto done;
}
int RGWPutObj_ObjStore_SWIFT::get_params()
{
- if (s->has_bad_meta)
+ if (s->has_bad_meta) {
return -EINVAL;
+ }
if (!s->length) {
const char *encoding = s->info.env->get("HTTP_TRANSFER_ENCODING");
- if (!encoding || strcmp(encoding, "chunked") != 0)
+ if (!encoding || strcmp(encoding, "chunked") != 0) {
+ ldout(s->cct, 20) << "neither length nor chunked encoding" << dendl;
return -ERR_LENGTH_REQUIRED;
+ }
chunked_upload = true;
}
supplied_etag = s->info.env->get("HTTP_ETAG");
if (!s->generic_attrs.count(RGW_ATTR_CONTENT_TYPE)) {
- dout(5) << "content type wasn't provided, trying to guess" << dendl;
+ ldout(s->cct, 5) << "content type wasn't provided, trying to guess" << dendl;
const char *suffix = strrchr(s->object.name.c_str(), '.');
if (suffix) {
suffix++;