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

Use explicit ownership for all resources #2261

Open
gaul opened this issue Aug 13, 2023 · 0 comments
Open

Use explicit ownership for all resources #2261

gaul opened this issue Aug 13, 2023 · 0 comments

Comments

@gaul
Copy link
Member

gaul commented Aug 13, 2023

C++11 enables s3fs to manage resources explicitly, e.g., via std::unique_ptr and std::move, instead of ad-hoc management via delete. This can simplify error handling and we can eliminate most or maybe all calls to delete.

We should be able to write some wrappers for FILE* and file descriptors as well.

gaul added a commit to gaul/s3fs-fuse that referenced this issue Aug 14, 2023
gaul added a commit to gaul/s3fs-fuse that referenced this issue Aug 14, 2023
ggtakec pushed a commit that referenced this issue Aug 15, 2023
gaul added a commit to gaul/s3fs-fuse that referenced this issue Aug 16, 2023
gaul added a commit to gaul/s3fs-fuse that referenced this issue Aug 16, 2023
gaul added a commit to gaul/s3fs-fuse that referenced this issue Aug 16, 2023
ggtakec pushed a commit that referenced this issue Aug 17, 2023
gaul added a commit to gaul/s3fs-fuse that referenced this issue Aug 19, 2023
gaul added a commit to gaul/s3fs-fuse that referenced this issue Aug 19, 2023
ggtakec pushed a commit that referenced this issue Aug 19, 2023
gaul added a commit to gaul/s3fs-fuse that referenced this issue Sep 12, 2023
This simplifies code and avoids manual memory management.  References s3fs-fuse#2261.
ggtakec pushed a commit that referenced this issue Sep 13, 2023
This simplifies code and avoids manual memory management.  References #2261.
gaul added a commit to gaul/s3fs-fuse that referenced this issue Sep 15, 2023
gaul added a commit to gaul/s3fs-fuse that referenced this issue Sep 15, 2023
gaul added a commit to gaul/s3fs-fuse that referenced this issue Sep 15, 2023
gaul added a commit to gaul/s3fs-fuse that referenced this issue Sep 15, 2023
gaul added a commit to gaul/s3fs-fuse that referenced this issue Sep 15, 2023
gaul added a commit that referenced this issue Sep 24, 2023
gaul added a commit that referenced this issue Sep 24, 2023
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

No branches or pull requests

1 participant