@@ -15,6 +15,7 @@ import (
1515 "github.com/cockroachdb/errors"
1616 "github.com/cockroachdb/pebble/internal/blobtest"
1717 "github.com/cockroachdb/pebble/internal/testkeys"
18+ "github.com/cockroachdb/pebble/objstorage"
1819 "github.com/cockroachdb/pebble/objstorage/objstorageprovider"
1920 "github.com/cockroachdb/pebble/sstable"
2021 "github.com/cockroachdb/pebble/vfs"
@@ -35,7 +36,7 @@ func TestExternalIterator(t *testing.T) {
3536 defer func () { require .NoError (t , d .Close ()) }()
3637 var bv blobtest.Values
3738
38- getOptsAndFiles := func (td * datadriven.TestData ) (opts IterOptions , files [][]sstable .ReadableFile ) {
39+ getOptsAndFiles := func (td * datadriven.TestData ) (opts IterOptions , files [][]objstorage .ReadableFile ) {
3940 opts = IterOptions {KeyTypes : IterKeyTypePointsAndRanges }
4041 for _ , arg := range td .CmdArgs {
4142 switch arg .Key {
@@ -49,7 +50,7 @@ func TestExternalIterator(t *testing.T) {
4950 for _ , v := range arg .Vals {
5051 f , err := mem .Open (v )
5152 require .NoError (t , err )
52- files = append (files , []sstable .ReadableFile {f })
53+ files = append (files , []objstorage .ReadableFile {f })
5354 }
5455 }
5556 }
@@ -89,7 +90,7 @@ func TestExternalIterator(t *testing.T) {
8990// See github.com/cockroachdb/cockroach/issues/141606 where an error during
9091// initialization caused NewExternalIter to panic.
9192func testExternalIteratorInitError (
92- t * testing.T , o * Options , iterOpts * IterOptions , files [][]sstable .ReadableFile ,
93+ t * testing.T , o * Options , iterOpts * IterOptions , files [][]objstorage .ReadableFile ,
9394) {
9495 files = slices .Clone (files )
9596 for i := range files {
@@ -110,7 +111,7 @@ func testExternalIteratorInitError(
110111}
111112
112113type flakyFile struct {
113- sstable .ReadableFile
114+ objstorage .ReadableFile
114115}
115116
116117func (ff * flakyFile ) ReadAt (p []byte , off int64 ) (n int , err error ) {
@@ -163,11 +164,11 @@ func BenchmarkExternalIter_NonOverlapping_Scan(b *testing.B) {
163164 b .ResetTimer ()
164165 for i := 0 ; i < b .N ; i ++ {
165166 func () {
166- files := make ([][]sstable .ReadableFile , fileCount )
167+ files := make ([][]objstorage .ReadableFile , fileCount )
167168 for i := 0 ; i < fileCount ; i ++ {
168169 f , err := fs .Open (filenames [i ])
169170 require .NoError (b , err )
170- files [i ] = []sstable .ReadableFile {f }
171+ files [i ] = []objstorage .ReadableFile {f }
171172 }
172173
173174 it , err := NewExternalIter (opts , iterOpts , files )
0 commit comments