diff --git a/pkg/storage/stateloader/stateloader.go b/pkg/storage/stateloader/stateloader.go index 4d0b2c7b27bc..9174d0a7ec7e 100644 --- a/pkg/storage/stateloader/stateloader.go +++ b/pkg/storage/stateloader/stateloader.go @@ -472,11 +472,8 @@ func (rsl StateLoader) LoadLegacyTxnSpanGCThreshold( ctx context.Context, reader engine.Reader, ) (*hlc.Timestamp, error) { var t hlc.Timestamp - found, err := engine.MVCCGetProto(ctx, reader, rsl.RangeTxnSpanGCThresholdKey(), + _, err := engine.MVCCGetProto(ctx, reader, rsl.RangeTxnSpanGCThresholdKey(), hlc.Timestamp{}, &t, engine.MVCCGetOptions{}) - if !found { - return nil, err - } return &t, err }