Right now, reading a path cleans up any folders marked as dirty, this means that reads need to hold a read-lock on the mutations. Otherwise, a read might clean up an in-progress path used by a mutation. This makes it very easy to run into accidental dead locks, see #2787.
We should change this such that:
Right now, reading a path cleans up any folders marked as dirty, this means that reads need to hold a read-lock on the mutations. Otherwise, a read might clean up an in-progress path used by a mutation. This makes it very easy to run into accidental dead locks, see #2787.
We should change this such that: