Skip to content

Commit

Permalink
db: export MakeTrailer
Browse files Browse the repository at this point in the history
Currently, we export MakeInternalKey but not MakeTrailer. This
change exports MakeTrailer so we can use it directly in
cockroachdb/cockroach#127997 .
  • Loading branch information
itsbilal committed Aug 15, 2024
1 parent 3731179 commit 72e9205
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ func MakeInternalKey(userKey []byte, seqNum SeqNum, kind InternalKeyKind) Intern
return base.MakeInternalKey(userKey, seqNum, kind)
}

// MakeInternalKeyTrailer constructs a trailer from a specified sequence number
// and kind.
func MakeInternalKeyTrailer(seqNum SeqNum, kind InternalKeyKind) InternalKeyTrailer {
return base.MakeTrailer(seqNum, kind)
}

type internalIterator = base.InternalIterator

type topLevelIterator = base.TopLevelIterator
Expand Down

0 comments on commit 72e9205

Please sign in to comment.