You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 19, 2026. It is now read-only.
A single-process writer is reloading its own data #1421
I’m currently observing that after a write to layerStore, reloadIfChanged triggers a reload. That seems unnecessary.
An unconfirmed hypothesis is that this is because we only update layerspathModified in load, so after a save, layerStore.reloadIfChanged always sees a timestamp update and triggers a reload.
Another, not really related issue: right now, we load the data when initializing a store, but that does not interact with lockfile.lw at all, so the next operation immediately triggers a reload. I suppose the initial store constructor should do a dummy _ = fooStore.modified()? OTOH that risks exacerbating #1420 .
I’m currently observing that after a write to layerStore, reloadIfChanged triggers a reload. That seems unnecessary.
An unconfirmed hypothesis is that this is because we only update layerspathModified in load, so after a save, layerStore.reloadIfChanged always sees a timestamp update and triggers a reload.
Activity
mtrmac commentedon Nov 4, 2022
Another, not really related issue: right now, we
loadthe data when initializing a store, but that does not interact withlockfile.lwat all, so the next operation immediately triggers a reload. I suppose the initial store constructor should do a dummy_ = fooStore.modified()? OTOH that risks exacerbating #1420 .mtrmac commentedon Nov 4, 2022
Confirmed now.
mtrmac commentedon Nov 4, 2022
Cc: @alexlarsson — I’m probably not going to work on this soon; unlike me, you know if it makes a significant difference.