From 72e9205dc39d665eaaecc274a46a4fad63c229ad Mon Sep 17 00:00:00 2001 From: Bilal Akhtar Date: Tue, 6 Aug 2024 14:16:48 -0400 Subject: [PATCH] db: export MakeTrailer Currently, we export MakeInternalKey but not MakeTrailer. This change exports MakeTrailer so we can use it directly in https://github.com/cockroachdb/cockroach/pull/127997 . --- internal.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal.go b/internal.go index 0b4d75621d..3e32434717 100644 --- a/internal.go +++ b/internal.go @@ -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