void RGWGetObj::execute()
{
- void *handle;
+ void *handle = NULL;
if (!verify_permission(s, RGW_PERM_READ)) {
ret = -EACCES;
goto done;
init_common();
-cout << __func__ << ":" << __LINE__ << ": ofs=" << ofs << std::endl;
+
ret = rgwstore->prepare_get_obj(s->bucket_str, s->object_str, ofs, &end, &attrs, mod_ptr,
unmod_ptr, if_match, if_nomatch, &total_len, &handle, &err);
if (ret < 0)
goto done;
-cout << __func__ << ":" << __LINE__ << ": ofs=" << ofs << std::endl;
-
if (!get_data || ofs > end)
goto done;
while (ofs <= end) {
-cout << __func__ << ":" << __LINE__ << ": ofs=" << ofs << std::endl;
-
-cout << "RGWGetObj::execute():" << __LINE__ << ": len=" << len << std::endl;
len = rgwstore->get_obj(&handle, s->bucket_str, s->object_str, &data, ofs, end);
if (len < 0) {
ret = len;
goto done;
}
-cout << "RGWGetObj::execute():" << __LINE__ << ": len=" << len << std::endl;
-cout << __func__ << ":" << __LINE__ << ": ofs=" << ofs << std::endl;
ofs += len;
send_response(handle);
-cout << "RGWGetObj::execute():" << __LINE__ << ": len=" << len << std::endl;
free(data);
}
cerr << "copy " << src_bucket << ":" << src_obj << " => " << dest_bucket << ":" << dest_obj << std::endl;
- void *handle;
+ void *handle = NULL;
map<string, bufferlist> attrset;
ret = prepare_get_obj(src_bucket, src_obj, ofs, &end, &attrset,