Skip to content

Commit d1426a6

Browse files
committed
Flip needsSafeAccess both ways
1 parent 36454d7 commit d1426a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ReplicaEngine/tla/ReplicaEngine.tla

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ process SafeAccessEnablerProcess = "SafeAccessEnabler"
9090
begin
9191
SafeAccessEnablerLoop:
9292
while pc["Consumer"] /= "Done" do
93-
versionMap_needsSafeAccess := TRUE;
93+
versionMap_needsSafeAccess := (versionMap_needsSafeAccess = FALSE);
94+
(* Technically the only way this can go back to FALSE is via a refresh, but
95+
we should not need this fact, so model both kinds of change. *)
9496
end while;
9597
end process;
9698

0 commit comments

Comments
 (0)