Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick ActorCache refactor #1914

Merged
merged 5 commits into from
Apr 15, 2024
Merged

Quick ActorCache refactor #1914

merged 5 commits into from
Apr 15, 2024

Conversation

MellowYarker
Copy link
Contributor

These commits were scattered before and after the larger read coalesce changes, and since that change is really big and complicated, I figured it would be easier to yank these quick refactors out into a separate PR so we can focus on the scary stuff elsewhere.

Copy link
Member

@a-robinson a-robinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This set of changes LGTM modulo the TODO(now) in the Make Entry::syncStatus private commit. If you want to get it in ahead of the other PRs, feel free.

src/workerd/io/actor-cache.h Outdated Show resolved Hide resolved
src/workerd/io/actor-cache.h Outdated Show resolved Hide resolved
@MellowYarker MellowYarker marked this pull request as ready for review March 29, 2024 02:01
@MellowYarker MellowYarker requested review from a team as code owners March 29, 2024 02:01
Copy link
Collaborator

@fhanau fhanau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

src/workerd/io/actor-cache.h Outdated Show resolved Hide resolved
src/workerd/io/actor-cache.c++ Outdated Show resolved Hide resolved
src/workerd/io/actor-cache.h Outdated Show resolved Hide resolved
src/workerd/io/limit-enforcer.h Outdated Show resolved Hide resolved
src/workerd/io/actor-cache.h Show resolved Hide resolved
src/workerd/io/actor-cache.c++ Show resolved Hide resolved
src/workerd/io/actor-cache.h Outdated Show resolved Hide resolved
src/workerd/io/actor-cache.h Show resolved Hide resolved
src/workerd/io/actor-cache.h Outdated Show resolved Hide resolved
MellowYarker and others added 4 commits March 29, 2024 08:41
Reading actor cache isn't easy, and if things are immutable then we
should convey that in the code.
This allows us to mutate from UNKNOWN to PRESENT or ABSENT but permit no other transition.
This commit introduces `addToCleanList()` and `addToDirtyList()` to make
it obvious when we're actually transitioning between lists.
This helps make it a bit more obvious that we don't want to touch
`syncStatus` directly.
Copy link
Member

@a-robinson a-robinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still LGTM, but it looks like merge on this will be blocked until @justin-mp removes his "Request changes" bit.

@MellowYarker MellowYarker merged commit db44674 into main Apr 15, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants