Fix content.ReaderAt close#5468
Conversation
Signed-off-by: Shiming Zhang <[email protected]>
|
Hi @wzshiming. Thanks for your PR. I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
Build succeeded.
|
When local is used by the client. There are more use cases I have seen that are trying to use the containerd client directly with a content store. When used through the content service, such as the client, the Close doesn't do anything since the content service automatically closes at the end of a request. |
content.ReaderAtis used in many places but not closed, It will actually callos.Open, this PR complements this close.containerd/content/local/store.go
Lines 128 to 141 in 01ca105
containerd/content/local/readerat.go
Lines 35 to 56 in 01ca105