Skip to content

Commit

Permalink
rgw/multisite: handle object stat output of attrs
Browse files Browse the repository at this point in the history
"user.rgw.replicated-at"

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
  • Loading branch information
Shilpa Jagannath committed Feb 14, 2024
1 parent 8fca9cd commit 626179f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions PendingReleaseNotes
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
>=19.0.0

* RGW: GetObject and HeadObject requests now return a x-rgw-replicated-at
header for replicated objects. This timestamp can be compared against the
Last-Modified header to determine how long the object took to replicate.
* The cephfs-shell utility is now packaged for RHEL 9 / CentOS 9 as required
python dependencies are now available in EPEL9.
* RGW: S3 multipart uploads using Server-Side Encryption now replicate correctly in
Expand Down
7 changes: 6 additions & 1 deletion src/rgw/rgw_admin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8355,7 +8355,12 @@ int main(int argc, const char **argv)

formatter->open_object_section("attrs");
for (iter = other_attrs.begin(); iter != other_attrs.end(); ++iter) {
dump_string(iter->first.c_str(), iter->second, formatter.get());
bufferlist& bl = iter->second;
if (iter->first == RGW_ATTR_OBJ_REPLICATION_TIMESTAMP) {
decode_dump<ceph::real_time>("user.rgw.replicated-at", bl, formatter.get());
} else {
dump_string(iter->first.c_str(), iter->second, formatter.get());
}
}
formatter->close_section();
formatter->close_section();
Expand Down

0 comments on commit 626179f

Please sign in to comment.