Re: I am confused by Mirage_kv.S.batch

2022-01-03 Thread Thomas Gazagnaire
Hi Mindy :-) The semantics intend to match the “commit” operation of Irmin, e.g. a commit will ever read what is in the current checkout (and/or what have been written in that commit since the beginning of the transaction). The important bits is that it won’t be able to read writes done by conc

Re: I am confused by Mirage_kv.S.batch

2022-01-03 Thread Anil Madhavapeddy
Looking at littlefs, you could probably get close to the transactional semantics by writing all the file data out first in the batch operation, and then hooking them into the main kv store by updating the metadata last. In the case of a crash, the files written out would be orphaned and so a sep

Re: I am confused by Mirage_kv.S.batch

2022-01-03 Thread Mindy
On 1/3/22 08:41, Thomas Gazagnaire wrote: Hi Mindy :-) The semantics intend to match the “commit” operation of Irmin, e.g. a commit will ever read what is in the current checkout (and/or what have been written in that commit since the beginning of the transaction). The important bits is that