-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improvement: [storage] use buffer for reads
We now use buffer for reads to make sure that if an import/read operation fails, we wont be left with an empty data array Before we would dump the data array and then read the file into it. If the file was corrupt, the operation would fail and leave as with an empty data array Now we keep the current data array and dump only if the import/read operation has finished successfully
- Loading branch information
Christos Kotsis
committed
Sep 12, 2021
1 parent
764cd8d
commit bb2047d
Showing
2 changed files
with
57 additions
and
33 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