We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
fabric/common/ledger/blkstorage/blockfile_mgr.go
Lines 425 to 428 in 94590aa
A block stream is opened to sync block index. After used, we should close that block stream.
The block stream stream is closed after used.
stream
simply add defer stream.close().
defer stream.close()
var stream *blockStream if stream, err = newBlockStream(mgr.rootDir, startFileNum, int64(startOffset), endFileNum); err != nil { return err } defer stream.close() // close stream
Maybe.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Current Status
fabric/common/ledger/blkstorage/blockfile_mgr.go
Lines 425 to 428 in 94590aa
A block stream is opened to sync block index. After used, we should close that block stream.
Expected
The block stream
stream
is closed after used.Solution
simply add
defer stream.close()
.Please let us know if you plan to work on this.
Maybe.
The text was updated successfully, but these errors were encountered: