Skip to content

Commit

Permalink
Merge pull request #859 from ApptiveGrid/858-SoilIndexManagercleanPag…
Browse files Browse the repository at this point in the history
…esModifiedNotAfter-is-dead-code

858-SoilIndexManagercleanPagesModifiedNotAfter-is-dead-code
  • Loading branch information
noha authored Oct 30, 2024
2 parents c870cfd + 1625045 commit a6bab57
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/Soil-Core/SoilIndexManager.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -50,24 +50,6 @@ SoilIndexManager >> at: indexId put: aSoilIndex [
put: aSoilIndex thePersistentInstance ]
]

{ #category : #'as yet unclassified' }
SoilIndexManager >> cleanPagesModifiedNotAfter: readVersion [
"| keysToRemove |"
"keysToRemove := OrderedCollection new.
pagesToMaintain keysAndValuesDo: [ :index :pages |
pages copy do: [ :page |
(readVersion isNil or: [ readVersion >= page lastTransaction ]) ifTrue: [
(page presentItemCount = 0)
ifTrue: [ index recyclePage: page ]
ifFalse: [ page cleanRemoved ].
pages remove: page ] ].
pages ifEmpty: [ keysToRemove add: index ].
index writePages ].
keysToRemove do: [ :index |
pagesToMaintain removeKey: index ]
"
]

{ #category : #'open/close' }
SoilIndexManager >> close [
semaphore critical: [
Expand Down

0 comments on commit a6bab57

Please sign in to comment.