Skip to content

[fix](recycler) Fix incorrect mtime convertion in azure obj client#37535

Merged
gavinchou merged 1 commit intoapache:masterfrom
platoneko:fix_azure_mtime
Jul 12, 2024
Merged

[fix](recycler) Fix incorrect mtime convertion in azure obj client#37535
gavinchou merged 1 commit intoapache:masterfrom
platoneko:fix_azure_mtime

Conversation

@platoneko
Copy link
Copy Markdown
Contributor

Proposed changes

Fix incorrect mtime convertion in azure obj client

@doris-robot
Copy link
Copy Markdown

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

gavinchou
gavinchou previously approved these changes Jul 9, 2024
Comment thread cloud/src/recycler/azure_obj_client.cpp Outdated
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);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const static ?

Copy link
Copy Markdown
Contributor

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()))
  {
  }
``

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Jul 9, 2024
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jul 9, 2024

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jul 9, 2024

PR approved by anyone and no changes requested.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jul 9, 2024

clang-tidy review says "All clean, LGTM! 👍"

1 similar comment
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jul 9, 2024

clang-tidy review says "All clean, LGTM! 👍"

Comment thread cloud/src/recycler/azure_obj_client.cpp
@platoneko
Copy link
Copy Markdown
Contributor Author

run buildall

@github-actions github-actions bot removed the approved Indicates a PR has been approved by one committer. label Jul 9, 2024
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jul 9, 2024

clang-tidy review says "All clean, LGTM! 👍"

@platoneko
Copy link
Copy Markdown
Contributor Author

run buildall

@platoneko
Copy link
Copy Markdown
Contributor Author

run buildall

@github-actions
Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@github-actions
Copy link
Copy Markdown
Contributor

PR approved by at least one committer and no changes requested.

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. dev/3.0.1-merged reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants