This change was originally submitted by lltlo <
120680451@qq.com> but
had some formatting issues and wasn't signed-off.
Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit
7d32b082f826181b605ae02ebc914fba9ac0d449)
Conflicts:
src/rgw/rgw_rados.cc
state->attrset.erase(iter->first);
}
}
+
for (iter = attrs.begin(); iter != attrs.end(); ++iter) {
state->attrset[iter->first] = iter->second;
}
+
+ auto iter = state->attrset.find(RGW_ATTR_ID_TAG);
+ if (iter != state->attrset.end()) {
+ iter->second = state->obj_tag;
+ }
}
return 0;