-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-4202] Fix race condition in orderer json ledger.
If the block file is read before a writing is finished, it would yield 'unexpected EOF' error. Therefore, a file lock is added to prevent concurrent write/read to the same block file. Change-Id: I22601dcf6066e02a00c57c405abd4e8dfa74dece Signed-off-by: Jay Guo <guojiannan1101@gmail.com>
- Loading branch information
Showing
2 changed files
with
45 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters