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

fs: ListObjects() was reading ETag at wrong offsets #4846

Merged
merged 1 commit into from Aug 24, 2017

Commits on Aug 23, 2017

  1. fs: ListObjects() was reading ETag at wrong offsets

    Current code was just using io.ReadAll() on an fd()
    which might have moved underneath due to a concurrent
    read operation. Subsequent read will result in EOF
    We should always seek back and read again. pread()
    is allowed on all platforms use io.SectionReader to
    read from the beginning of the file.
    
    Fixes minio#4842
    harshavardhana committed Aug 23, 2017
    Copy the full SHA
    2f15c60 View commit details
    Browse the repository at this point in the history