aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Disks
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2023-12-04 17:32:31 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2023-12-05 04:16:04 +0300
commit729685076fffeae4fcfb8df31b8861813fc4a9be (patch)
tree459271bae0a07e833216282b42a4c4239e3a031f /contrib/clickhouse/src/Disks
parentbff99195ecfa960a4162f236cf20a5e57f6d2f26 (diff)
downloadydb-729685076fffeae4fcfb8df31b8861813fc4a9be.tar.gz
Intermediate changes
Diffstat (limited to 'contrib/clickhouse/src/Disks')
-rw-r--r--contrib/clickhouse/src/Disks/ObjectStorages/S3/S3ObjectStorage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/clickhouse/src/Disks/ObjectStorages/S3/S3ObjectStorage.cpp b/contrib/clickhouse/src/Disks/ObjectStorages/S3/S3ObjectStorage.cpp
index 1e68d99c7e..0d9670efeb 100644
--- a/contrib/clickhouse/src/Disks/ObjectStorages/S3/S3ObjectStorage.cpp
+++ b/contrib/clickhouse/src/Disks/ObjectStorages/S3/S3ObjectStorage.cpp
@@ -127,7 +127,7 @@ private:
result = !objects.empty();
for (const auto & object : objects)
- batch.emplace_back(object.GetKey(), ObjectMetadata{static_cast<uint64_t>(object.GetSize()), Poco::Timestamp::fromEpochTime(object.GetLastModified().Millis() / 1000), {}});
+ batch.emplace_back(object.GetKey(), ObjectMetadata{static_cast<uint64_t>(object.GetSize()), Poco::Timestamp::fromEpochTime(object.GetLastModified().Seconds()), {}});
if (result)
request.SetContinuationToken(outcome.GetResult().GetNextContinuationToken());
@@ -293,7 +293,7 @@ void S3ObjectStorage::listObjects(const std::string & path, RelativePathsWithMet
break;
for (const auto & object : objects)
- children.emplace_back(object.GetKey(), ObjectMetadata{static_cast<uint64_t>(object.GetSize()), Poco::Timestamp::fromEpochTime(object.GetLastModified().Millis() / 1000), {}});
+ children.emplace_back(object.GetKey(), ObjectMetadata{static_cast<uint64_t>(object.GetSize()), Poco::Timestamp::fromEpochTime(object.GetLastModified().Seconds()), {}});
if (max_keys)
{