Skip to content
This repository has been archived by the owner on Sep 22, 2020. It is now read-only.

mfile: write after validate existing block #437

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

mfile: write after validate existing block #437

wants to merge 1 commit into from

Conversation

nak3
Copy link
Contributor

@nak3 nak3 commented Dec 17, 2016

mfile: write after validate existing block

Currently refIndex map in mfileBlock will be updated, after
WriteBlock() wrote the block data and ref. That may be writing same
data and ref to the file. This patch changes to validate the existing
same block, before writing the data or ref to the file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant