Signed-off-by: Casey Bodley <cbodley@redhat.com>
continue;
}
+ if (max_parts < 1) {
+ *truncated = true;
+ break;
+ }
+
/* get_part_obj_state alters the passed manifest** to point to a part
* manifest, which we don't want to leak out here */
RGWObjManifest* obj_m = manifest;
each_func(obj_part);
*next_marker = ++marker;
+ --max_parts;
} /* each part */
return ret;
std::string version_id;
std::string expected_bucket_owner;
int marker{0};
- int max_parts{0};
+ int max_parts{1000};
uint16_t requested_attributes{0};
#if 0
/* used to decrypt attributes for objects stored with SSE-C */