@@ -16,6 +16,7 @@ import (
1616 "github.com/cockroachdb/cockroach/pkg/kv/kvpb"
1717 "github.com/cockroachdb/cockroach/pkg/kv/kvserver"
1818 "github.com/cockroachdb/cockroach/pkg/kv/kvserver/kvserverbase"
19+ "github.com/cockroachdb/cockroach/pkg/kv/kvserver/kvstorage"
1920 "github.com/cockroachdb/cockroach/pkg/kv/kvserver/loqrecovery"
2021 "github.com/cockroachdb/cockroach/pkg/kv/kvserver/loqrecovery/loqrecoverypb"
2122 "github.com/cockroachdb/cockroach/pkg/roachpb"
@@ -72,9 +73,9 @@ func TestFindUpdateDescriptor(t *testing.T) {
7273
7374 return srk
7475 },
75- func (t * testing.T , ctx context.Context , reader storage. Reader ) {
76+ func (t * testing.T , ctx context.Context , raftRO kvstorage. RaftRO ) {
7677 seq , err := loqrecovery .GetDescriptorChangesFromRaftLog (
77- ctx , testRangeID , 0 , math .MaxInt64 , reader )
78+ ctx , testRangeID , 0 , math .MaxInt64 , raftRO )
7879 require .NoError (t , err , "failed to read raft log data" )
7980
8081 requireContainsDescriptor (t , loqrecoverypb.DescriptorChangeInfo {
@@ -125,9 +126,9 @@ func TestFindUpdateRaft(t *testing.T) {
125126
126127 return srk
127128 },
128- func (t * testing.T , ctx context.Context , reader storage. Reader ) {
129+ func (t * testing.T , ctx context.Context , raftRO kvstorage. RaftRO ) {
129130 seq , err := loqrecovery .GetDescriptorChangesFromRaftLog (
130- ctx , sRD .RangeID , 0 , math .MaxInt64 , reader )
131+ ctx , sRD .RangeID , 0 , math .MaxInt64 , raftRO )
131132 require .NoError (t , err , "failed to read raft log data" )
132133 requireContainsDescriptor (t , loqrecoverypb.DescriptorChangeInfo {
133134 ChangeType : loqrecoverypb .DescriptorChangeType_ReplicaChange ,
@@ -142,13 +143,13 @@ func checkRaftLog(
142143 ctx context.Context ,
143144 nodeToMonitor int ,
144145 action func (ctx context.Context , tc * testcluster.TestCluster ) roachpb.RKey ,
145- assertRaftLog func (* testing.T , context.Context , storage. Reader ),
146+ assertRaftLog func (* testing.T , context.Context , kvstorage. RaftRO ),
146147 leaseType roachpb.LeaseType ,
147148) {
148149 t .Helper ()
149150
150151 makeSnapshot := make (chan storage.Engine , 2 )
151- snapshots := make (chan storage. Reader , 2 )
152+ snapshots := make (chan kvstorage. RaftRO , 2 )
152153
153154 raftFilter := func (args kvserverbase.ApplyFilterArgs ) (int , * kvpb.Error ) {
154155 t .Helper ()
@@ -209,7 +210,7 @@ func checkRaftLog(
209210
210211 // TODO(sep-raft-log): the receiver doesn't use the engine, so remove this
211212 // altogether and use a `chan struct{}{}`.
212- eng := tc .GetFirstStoreFromServer (t , nodeToMonitor ).TODOEngine ()
213+ eng := tc .GetFirstStoreFromServer (t , nodeToMonitor ).LogEngine ()
213214 makeSnapshot <- eng
214215 // After the test action is complete raft might be completely caught up with
215216 // its messages, so we will write a value into the range to ensure filter
0 commit comments