-
Notifications
You must be signed in to change notification settings - Fork 6
TagStorage can get corrupted during writing #35
Comments
We need to explore possibilities to prevent "dirty writing". Atomic writing could be implemented like this:
There could be other ways to implement this OR ready-made libraries. |
|
@ShubertMunthali what can cause this? It seems to me that |
We have two coroutines there, |
Superseded by #69 |
Sometimes, the file serving as tag storage becomes corrupted:
In the example above, resource id isn't complete and no tags following.
In fact, there is even bigger problem: in such cases, half of the storage is lost. Thanks to backup mechanism the loss can be mitigated. However, this must not happen at all.
Atomic writing should be implemented.
The text was updated successfully, but these errors were encountered: