Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Commit fa1217e

Browse files
Handled UnknownError while performing copy object using tagging directive COPY on source object with no tags
Signed-off-by: shraddhaghatol <[email protected]>
1 parent 1462e20 commit fa1217e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/rgw/rgw_sal_motr.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2500,8 +2500,7 @@ int MotrObject::copy_object_same_zone(RGWObjectCtx& obj_ctx,
25002500
if (strcasecmp(tagging_drctv, "COPY") == 0) {
25012501
rc = read_op->get_attr(dpp, RGW_ATTR_TAGS, tags_bl, y);
25022502
if (rc < 0) {
2503-
ldpp_dout(dpp, LOG_ERROR) <<__func__ << ": ERROR: read op for object tags failed rc=" << rc << dendl;
2504-
return rc;
2503+
ldpp_dout(dpp, LOG_DEBUG) <<__func__ << ": DEBUG: No tags present for source object rc=" << rc << dendl;
25052504
}
25062505
} else if (strcasecmp(tagging_drctv, "REPLACE") == 0) {
25072506
ldpp_dout(dpp, LOG_INFO) <<__func__ << ": INFO: Parse tag values for object: " << dest_object->get_key().to_str() << dendl;

0 commit comments

Comments
 (0)