-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[fix](recycler) Fix incorrect mtime convertion in azure obj client #37535
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
fdb34fa
to
ec720cd
Compare
@@ -91,12 +92,15 @@ class AzureListIterator final : public ObjectListIterator { | |||
DCHECK(!(has_more_ && resp.Blobs.empty())) << has_more_ << ' ' << resp.Blobs.empty(); | |||
req_.ContinuationToken = std::move(resp.NextPageToken); | |||
results_.reserve(resp.Blobs.size()); | |||
const auto unix_epoch = Azure::DateTime(1970, 1, 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const static ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/**
* @brief Construct an instance of `%DateTime` from `std::chrono::system_clock::time_point`.
* @param systemTime A value of `std::chrono::system_clock::time_point`.
*
*/
DateTime(std::chrono::system_clock::time_point const& systemTime)
: DateTime(
SystemClockEpoch + std::chrono::duration_cast<duration>(systemTime.time_since_epoch()))
{
}
``
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
clang-tidy review says "All clean, LGTM! 👍" |
1 similar comment
clang-tidy review says "All clean, LGTM! 👍" |
ec720cd
to
f0e92ff
Compare
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
run buildall |
f0e92ff
to
b609f0c
Compare
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
PR approved by at least one committer and no changes requested. |
Proposed changes
Fix incorrect mtime convertion in azure obj client