Skip to content

Commit 77a04d5

Browse files
committed
valsep: introduce new generalized blob writer
generalizedValueSeparation is a new ValueSeparation implementation that combines the existing implementations from writeNewBlobs and preserveBlobReferences. It is able to function in either mode (writing new blobs or preserving all blob refs). Currently, we either write new blob refs or preserve blob refs when writing an sst. In the future (for tiered storage), we may do both. The next commits will replace the old implementations with the generalized separator.
1 parent ed014e0 commit 77a04d5

File tree

2 files changed

+503
-0
lines changed

2 files changed

+503
-0
lines changed

internal/base/internal.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,3 +762,10 @@ func (ikr *InternalKeyBounds) SetLargest(ik InternalKey) {
762762
ikr.largestTrailer = ik.Trailer
763763
ikr.userKeySeparatorIdx = len(smallestUserKey)
764764
}
765+
766+
type StorageTier uint8
767+
768+
const (
769+
HotTier StorageTier = iota
770+
NumStorageTiers
771+
)

0 commit comments

Comments
 (0)