Open nak3 opened 7 years ago
How did you spot this bug? do you mind adding a test for this?
Thank you. I updated. Sure, I can add a test for this. But it looks like I should wait for https://github.com/coreos/torus/pull/359, as some test utilities would be added.
cache: put cache data after writing the data successfully
This patch changes the cache data to put after writing the data to local or peers successfully. As current code put the cache before writing the data, it causes conflict when the writing the data failed.