Skip to content

Commit 139d76f

Browse files
committed
Swap to Serializable for squashing causals, RepeatableRead isn't safe enough
1 parent d01771a commit 139d76f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Share/Web/UCM/Projects/Impl.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ getProjectBranchEndpoint (AuthN.MaybeAuthedUserID mayCallerUserId) projectIdPara
133133
maySquashedBranchHead <-
134134
if includeSquashedHead
135135
then lift $ do
136-
PG.runTransactionMode PG.RepeatableRead PG.ReadWrite $ do
136+
PG.runTransaction $ do
137137
maySquashedCausalId <- Codebase.squashCausalAndAddToCodebase codebaseEnv causalId
138138
-- Join in the hash
139139
for maySquashedCausalId \cid -> (cid,) <$> HashQ.expectCausalHashesByIdsOf id cid

0 commit comments

Comments
 (0)