Skip to content

Commit

Permalink
update GDKStoneSpec>>checkSystemIsVoting: for 3.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dalehenrich committed Oct 28, 2023
1 parent 3157d29 commit e1ce369
Showing 1 changed file with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
backup/restore
checkSystemIsVoting: isVotingBlock
| vs sessId |
| vs |
vs := System voteState.
sessId := System sessionIdHoldingGcLock.
(sessId ~~ 0 or: [ vs > 0 and: [ vs < 4 ] ])
ifTrue: [ isVotingBlock value: sessId value: vs ]
(System respondsTo: #'sessionsHoldingGcLock')
ifTrue: [
| sessIds |
sessIds := System sessionsHoldingGcLock.
(sessIds size > 0 or: [ vs > 0 and: [ vs < 4 ] ])
ifTrue: [ isVotingBlock value: sessIds value: vs ] ]
ifFalse: [
| sessId |
sessId := System sessionIdHoldingGcLock.
(sessId ~~ 0 or: [ vs > 0 and: [ vs < 4 ] ])
ifTrue: [ isVotingBlock value: sessId value: vs ] ]

0 comments on commit e1ce369

Please sign in to comment.