Skip to content

Commit

Permalink
Merge pull request #607 from ApptiveGrid/604-Index-values-ObjectID-vs…
Browse files Browse the repository at this point in the history
…-ByteArray-

604-Index-values-ObjectID-vs-ByteArray
  • Loading branch information
noha authored Feb 13, 2024
2 parents 4fe146a + b405d07 commit 8a81468
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
9 changes: 0 additions & 9 deletions src/Soil-Core/SoilBTreePage.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,6 @@ SoilBTreePage >> readFrom: aStream [
self readLastTransactionFrom: aStream
]

{ #category : #reading }
SoilBTreePage >> readItemsFrom: aStream [
| numberOfItems |
numberOfItems := (aStream next: self itemsSizeSize) asInteger.
items := SortedCollection new: numberOfItems.
numberOfItems timesRepeat: [
items add: (aStream next: self keySize) asInteger -> (aStream next: self valueSize) ]
]

{ #category : #private }
SoilBTreePage >> split: newPage [
| middle |
Expand Down
2 changes: 1 addition & 1 deletion src/Soil-Core/SoilBackupVisitor.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ SoilBackupVisitor >> copyIndexAt: indexId segment: segmentId [
assoc value isRemoved ifFalse: [
targetIndex basicAt: assoc key put: assoc value.
"recurse further into the values of the index"
self process: assoc value ] ].
self process: assoc value asSoilObjectId ] ].
targetIndex
flush;
close.
Expand Down
2 changes: 1 addition & 1 deletion src/Soil-Core/SoilIndexItemsPage.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ SoilIndexItemsPage >> readItemsFrom: aStream [
numberOfItems := (aStream next: self itemsSizeSize) asInteger.
items := SortedCollection new: numberOfItems.
numberOfItems timesRepeat: [
items add: ((aStream next: self keySize) asInteger -> (aStream next: self valueSize) asSoilObjectId) ]
items add: ((aStream next: self keySize) asInteger -> (aStream next: self valueSize) ) ]
]

{ #category : #writing }
Expand Down

0 comments on commit 8a81468

Please sign in to comment.