summaryrefslogtreecommitdiffstats
path: root/src/rgw/driver/rados
diff options
context:
space:
mode:
authorSoumya Koduri <skoduri@redhat.com>2024-12-03 04:18:55 +0100
committerGitHub <noreply@github.com>2024-12-03 04:18:55 +0100
commitbaa6b7b747d1f593f0a9823927c716aa2af3fa2d (patch)
treeff8730b91cc3ced8f824e6eb67c854145a6cd15d /src/rgw/driver/rados
parentMerge pull request #59449 from tth-trang/wip-65772-quincy (diff)
parentrgw/restore: Fixed status codes and response headers (diff)
downloadceph-baa6b7b747d1f593f0a9823927c716aa2af3fa2d.tar.xz
ceph-baa6b7b747d1f593f0a9823927c716aa2af3fa2d.zip
Merge pull request #60151 from shreyanshjain7174/wip-skoduri-cloud-restore
rgw/restore: Fixed status codes and response headers Reviewed-by: Soumya Koduri <skoduri@redhat.com>
Diffstat (limited to 'src/rgw/driver/rados')
-rw-r--r--src/rgw/driver/rados/rgw_rados.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/rgw/driver/rados/rgw_rados.cc b/src/rgw/driver/rados/rgw_rados.cc
index a133b54dc59..5a7cd92790a 100644
--- a/src/rgw/driver/rados/rgw_rados.cc
+++ b/src/rgw/driver/rados/rgw_rados.cc
@@ -5252,13 +5252,7 @@ int RGWRados::restore_obj_from_cloud(RGWLCCloudTierCtx& tier_ctx,
ceph::real_time restore_time = real_clock::now();
{
- char buf[32];
- utime_t ut(restore_time);
- snprintf(buf, sizeof(buf), "%lld.%09lld",
- (long long)ut.sec(),
- (long long)ut.nsec());
bufferlist bl;
- bl.append(buf, 32);
encode(restore_time, bl);
attrs[RGW_ATTR_RESTORE_TIME] = std::move(bl);
}
@@ -5278,13 +5272,7 @@ int RGWRados::restore_obj_from_cloud(RGWLCCloudTierCtx& tier_ctx,
delete_at = expiration_date;
{
- char buf[32];
- utime_t ut(expiration_date);
- snprintf(buf, sizeof(buf), "%lld.%09lld",
- (long long)ut.sec(),
- (long long)ut.nsec());
bufferlist bl;
- bl.append(buf, 32);
encode(expiration_date, bl);
attrs[RGW_ATTR_RESTORE_EXPIRY_DATE] = std::move(bl);
}