Skip to content
This repository was archived by the owner on Nov 19, 2026. It is now read-only.
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

Closed

Description

@mtrmac

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

  1. mtrmac commented on Nov 4, 2022

    @mtrmac
    CollaboratorAuthor

    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 .

  2. mtrmac commented on Nov 4, 2022

    @mtrmac
    CollaboratorAuthor

    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.

    Confirmed now.

  3. mtrmac commented on Nov 4, 2022

    @mtrmac
    CollaboratorAuthor

    Cc: @alexlarsson — I’m probably not going to work on this soon; unlike me, you know if it makes a significant difference.

  4. linked a pull request that will close this issueIn-process exclusion of readers and writers #1346on Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions