* a refactor in
e2100bce left the mod_ptr and unmod_ptr members set
incorrectly in RGWCopyObj::init_common
* a fix in
6752babd aggregated error returns, but then failed to do
anything with them
Signed-off-by: Josh Pieper <jjp@pobox.com>
Signed-off-by: Sage Weil <sage@newdream.net>
int RGWCopyObj::init_common()
{
- time_t mod_time;
- time_t unmod_time;
- time_t *mod_ptr = NULL;
- time_t *unmod_ptr = NULL;
if (if_mod) {
if (parse_time(if_mod, &mod_time) < 0) {
ret = -EINVAL;
off_t ofs;
off_t len;
off_t end;
+ time_t mod_time;
+ time_t unmod_time;
time_t *mod_ptr;
time_t *unmod_ptr;
int ret;
continue;
}
}
- return 0;
+ return ret;
}
int RGWRados::bucket_suspended(rgw_bucket& bucket, bool *suspended)