Now that even zero sized objs have manifest a
test had to be modified.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
else
len = end - ofs + 1;
- if (astate->has_manifest) {
+ if (astate->has_manifest &&
+ astate->manifest.objs.size() > 0) {
/* now get the relevant object part */
map<uint64_t, RGWObjManifestPart>::iterator iter = astate->manifest.objs.upper_bound(ofs);
/* we're now pointing at the next part (unless the first part starts at a higher ofs),