Skip to content

Commit

Permalink
do not commit on read-only transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
noha committed Oct 8, 2024
1 parent e9cad96 commit 9cb30c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Soil-Core/SoilTransaction.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -242,14 +242,16 @@ SoilTransaction >> buildWriteVersion [
{ #category : #accessing }
SoilTransaction >> commit [
self basicCommit.
soil checkpoint.
recordsToCommit ifNotEmpty: [
soil checkpoint ].
self basicAbort.
]

{ #category : #actions }
SoilTransaction >> commitAndContinue [
self basicCommit.
soil checkpoint.
recordsToCommit ifNotEmpty: [
soil checkpoint ].
self continue
]

Expand Down

0 comments on commit 9cb30c1

Please sign in to comment.