Skip to content
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 s3 move and copy, assignment operator with custom credentials #2800

Merged
merged 1 commit into from
Dec 27, 2023

Conversation

sbiscigl
Copy link
Contributor

@sbiscigl sbiscigl commented Dec 26, 2023

Description of changes:

There was a previous change to fix the copy constructor for s3, which fixed copy constructors, but missed copy assignment. This changes the copy assignment to operator to create a client with the existing credentials.

This also update to add move constructors to client.

To be clear, we advise not using copy ctors or assignment and are debating removing them in future releases to prevent inefficent workflows.

Check all that applies:

  • Did a review by yourself.
  • Added proper tests to cover this PR. (If tests are not applicable, explain.)
  • Checked if this PR is a breaking (APIs have been changed) change.
  • Checked if this PR will not introduce cross-platform inconsistent behavior.
  • Checked if this PR would require a ReadMe/Wiki update.

Check which platforms you have built SDK on to verify the correctness of this PR.

  • Linux
  • Windows
  • Android
  • MacOS
  • IOS
  • Other Platforms

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@sbiscigl sbiscigl force-pushed the fix-s3-copy-assignemnt branch 2 times, most recently from e4e4151 to 021da46 Compare December 27, 2023 15:11
@sbiscigl sbiscigl changed the title fix s3 copy assignment operator custom credentials fix s3 mave and copy, assignment operator with custom credentials Dec 27, 2023
@sbiscigl sbiscigl changed the title fix s3 mave and copy, assignment operator with custom credentials fix s3 move and copy, assignment operator with custom credentials Dec 27, 2023
@sbiscigl sbiscigl force-pushed the fix-s3-copy-assignemnt branch from 021da46 to 8f5b93a Compare December 27, 2023 17:04
@sbiscigl sbiscigl marked this pull request as ready for review December 27, 2023 17:50
@sbiscigl sbiscigl merged commit 7e7ed06 into main Dec 27, 2023
4 checks passed
@sbiscigl sbiscigl deleted the fix-s3-copy-assignemnt branch December 27, 2023 17:55
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.

3 participants