Skip to content

Fix potential file ordering issue.#1221

Merged
littleaj merged 1 commit into
microsoft:masterfrom
gdufrene:fix/TransmissionFileOrder
Jun 1, 2020
Merged

Fix potential file ordering issue.#1221
littleaj merged 1 commit into
microsoft:masterfrom
gdufrene:fix/TransmissionFileOrder

Conversation

@gdufrene

Copy link
Copy Markdown
Contributor

File.lastModified() may be not enough precise to order files.
Some Filesystem only keep 1 second precision for this date.
I suggest to include a timestamp in temp file name so that
we can order files by names.

Fix # .

For significant contributions please make sure you have completed the following items:

  • Design discussion issue #
  • Changes in public surface reviewed
  • CHANGELOG.md updated

File.lastModified() may be not enough precise to order files.
Some Filesystem only keep 1 second precision for this date.
I suggest to include a timestamp in temp file name so that
we can order files by names.
@littleaj littleaj self-requested a review May 28, 2020 20:20
@littleaj littleaj self-assigned this May 28, 2020
@littleaj

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

@littleaj littleaj left a comment

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.

Good catch, @gdufrene! Thank you for contributing the fix.

@littleaj littleaj merged commit 6a45b92 into microsoft:master Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants