@@ -915,8 +915,8 @@ func TestCompaction(t *testing.T) {
915
915
}
916
916
917
917
// d.mu must be held when calling.
918
- createOngoingCompaction := func (start , end []byte , startLevel , outputLevel int ) (ongoingCompaction * compaction ) {
919
- ongoingCompaction = & compaction {
918
+ createOngoingCompaction := func (start , end []byte , startLevel , outputLevel int ) (ongoingCompaction * tableCompaction ) {
919
+ ongoingCompaction = & tableCompaction {
920
920
inputs : []compactionLevel {{level : startLevel }, {level : outputLevel }},
921
921
bounds : base .UserKeyBoundsInclusive (start , end ),
922
922
}
@@ -937,7 +937,7 @@ func TestCompaction(t *testing.T) {
937
937
}
938
938
939
939
// d.mu must be held when calling.
940
- deleteOngoingCompaction := func (ongoingCompaction * compaction ) {
940
+ deleteOngoingCompaction := func (ongoingCompaction * tableCompaction ) {
941
941
for _ , cl := range ongoingCompaction .inputs {
942
942
for f := range cl .files .All () {
943
943
f .CompactionState = manifest .CompactionStateNotCompacting
@@ -949,7 +949,7 @@ func TestCompaction(t *testing.T) {
949
949
950
950
runTest := func (t * testing.T , testData string , minVersion , maxVersion FormatMajorVersion , verbose bool ) {
951
951
reset (minVersion , maxVersion )
952
- var ongoingCompaction * compaction
952
+ var ongoingCompaction * tableCompaction
953
953
datadriven .RunTest (t , testData , func (t * testing.T , td * datadriven.TestData ) string {
954
954
switch td .Cmd {
955
955
case "reset" :
@@ -2091,7 +2091,7 @@ func TestCompactionAllowZeroSeqNum(t *testing.T) {
2091
2091
2092
2092
case "allow-zero-seqnum" :
2093
2093
d .mu .Lock ()
2094
- c := & compaction {
2094
+ c := & tableCompaction {
2095
2095
comparer : d .opts .Comparer ,
2096
2096
version : d .mu .versions .currentVersion (),
2097
2097
inputs : []compactionLevel {{}, {}},
@@ -2173,7 +2173,7 @@ func TestCompactionErrorOnUserKeyOverlap(t *testing.T) {
2173
2173
func (t * testing.T , d * datadriven.TestData ) string {
2174
2174
switch d .Cmd {
2175
2175
case "error-on-user-key-overlap" :
2176
- c := & compaction {comparer : DefaultComparer }
2176
+ c := & tableCompaction {comparer : DefaultComparer }
2177
2177
var files []manifest.NewTableEntry
2178
2178
tableNum := base .TableNum (1 )
2179
2179
@@ -2300,7 +2300,7 @@ func TestCompactionCheckOrdering(t *testing.T) {
2300
2300
func (t * testing.T , d * datadriven.TestData ) string {
2301
2301
switch d .Cmd {
2302
2302
case "check-ordering" :
2303
- c := & compaction {
2303
+ c := & tableCompaction {
2304
2304
comparer : DefaultComparer ,
2305
2305
logger : panicLogger {},
2306
2306
inputs : []compactionLevel {{level : - 1 }, {level : - 1 }},
@@ -2552,7 +2552,7 @@ func TestAdjustGrandparentOverlapBytesForFlush(t *testing.T) {
2552
2552
}
2553
2553
for _ , tc := range testCases {
2554
2554
t .Run ("" , func (t * testing.T ) {
2555
- c := compaction {
2555
+ c := tableCompaction {
2556
2556
grandparents : ls ,
2557
2557
maxOverlapBytes : maxOverlapBytes ,
2558
2558
maxOutputFileSize : maxOutputFileSize ,
0 commit comments