Fixes: #15565
check only verified that status was > 0, so we ended not updating mtime for
the target object. This resulted in a continuous sync of objects.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit
255f19d9ef964536f2db17f70749f489330262a6)
int RGWRESTStreamRWRequest::complete(string& etag, real_time *mtime, map<string, string>& attrs)
{
set_str_from_headers(out_headers, "ETAG", etag);
- if (status > 0 && mtime) {
+ if (status >= 0 && mtime) {
string mtime_str;
set_str_from_headers(out_headers, "RGWX_MTIME", mtime_str);
if (!mtime_str.empty()) {