#include "common/RefCountedObj.h"
#include "common/WorkQueue.h"
#include "common/Throttle.h"
+#include "common/errno.h"
#include "rgw_common.h"
#include "rgw_rados.h"
} while (marker_tracker->need_retry(raw_key));
sync_status = retcode;
+
+ if (sync_status < 0) {
+ yield call(sync_env->error_logger->log_error_cr("data", bucket_name + ":" + bucket_instance, -sync_status, string("failed to sync bucket instance: ") + cpp_strerror(-sync_status)));
+ }
#warning what do do in case of error
if (!entry_marker.empty()) {
/* update marker */
sync_status = retcode;
}
if (sync_status < 0) {
- return set_cr_error(retcode);
+ return set_cr_error(sync_status);
}
return set_cr_done();
}
#include "common/WorkQueue.h"
#include "common/Throttle.h"
#include "common/admin_socket.h"
+#include "common/errno.h"
#include "rgw_common.h"
#include "rgw_rados.h"
}
if (sync_status < 0) {
-#warning need to store entry for non-transient errors
ldout(sync_env->cct, 10) << *this << ": failed to send read remote metadata entry: section=" << section << " key=" << key << " status=" << sync_status << dendl;
log_error() << "failed to send read remote metadata entry: section=" << section << " key=" << key << " status=" << sync_status << std::endl;
+ yield call(sync_env->error_logger->log_error_cr(section, key, -sync_status, string("failed to read remote metadata entry: ") + cpp_strerror(-sync_status)));
return set_cr_error(sync_status);
}